Skip to content

Commit

Permalink
refactor: handler error and update lint version
Browse files Browse the repository at this point in the history
  • Loading branch information
hoank101 committed Feb 14, 2024
1 parent c9208e8 commit 3ba1347
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
version: v1.55.2
args: --timeout 10m
5 changes: 4 additions & 1 deletion scripts/export_dig_holder.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ func main() {
continue
}
row := []string{addr, fmt.Sprint(balance)}
writer.Write(row)
err := writer.Write(row)
if err != nil {
return
}
}

Check warning

Code scanning / CodeQL

Iteration over map Warning

Iteration over map may be a possible source of non-determinism
fmt.Println("total", len(mapAddr))
fmt.Printf("Data written to %s\n", csvFilePath)
Expand Down

0 comments on commit 3ba1347

Please sign in to comment.