diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 7221b510e..bb1ef45b2 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -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 diff --git a/scripts/export_dig_holder.go b/scripts/export_dig_holder.go index d34241078..005405e30 100644 --- a/scripts/export_dig_holder.go +++ b/scripts/export_dig_holder.go @@ -122,7 +122,10 @@ func main() { continue } row := []string{addr, fmt.Sprint(balance)} - writer.Write(row) + err := writer.Write(row) + if err != nil { + return + } } fmt.Println("total", len(mapAddr)) fmt.Printf("Data written to %s\n", csvFilePath)