Skip to content

Commit

Permalink
fix reviewdog error
Browse files Browse the repository at this point in the history
  • Loading branch information
ohill committed Apr 26, 2024
1 parent 3c3447b commit 59d624d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
- name: reviewdog-golangci-lint
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
go_version_file: go.mod
golangci_lint_version: "v1.53.2"
golangci_lint_flags: "-c .golangci.yml --allow-parallel-runners"
Expand All @@ -41,7 +40,6 @@ jobs:
- name: reviewdog-golangci-lint
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
go_version_file: go.mod
golangci_lint_version: "v1.53.2"
golangci_lint_flags: "-c .golangci-warnings.yml --allow-parallel-runners"
Expand Down
5 changes: 4 additions & 1 deletion util/test/account_testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ func DecodeAddressOrPanic(addr string) sdk.Address {
// This is necessary to ensure the hash of any two txns used in tests are never the same.
func ArbitraryString() []byte {
arb := make([]byte, config.MaxTxnNoteBytes)
rand.Read(arb)
_, err := rand.Read(arb)
if err != nil {
panic("rand.Read error")
}
return arb
}

Expand Down

0 comments on commit 59d624d

Please sign in to comment.