Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed May 13, 2024
1 parent 3a9ffb7 commit b9a81f6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ run:
linters:
disable-all: true
enable:
- depguard
- dogsled
- exportloopref
- goconst
Expand Down
2 changes: 1 addition & 1 deletion crypto/keyring/keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ func newRealPrompt(dir string, buf io.Reader) func(string) (string, error) {
continue
}

if err := os.WriteFile(dir+"/keyhash", passwordHash, 0o555); err != nil {
if err := os.WriteFile(dir+"/keyhash", passwordHash, 0o555); err != nil { //nolint: G306

Check failure on line 785 in crypto/keyring/keyring.go

View workflow job for this annotation

GitHub Actions / golangci-lint

G306: Expect WriteFile permissions to be 0600 or less (gosec)
return "", err
}

Expand Down
2 changes: 1 addition & 1 deletion x/group/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ func (k Keeper) PruneProposals(ctx sdk.Context) error {
&group.EventProposalPruned{
ProposalId: proposal.Id,
Status: proposal.Status,
TallyResult: &proposal.FinalTallyResult,
TallyResult: &proposal.FinalTallyResult, //nolint: G601

Check failure on line 382 in x/group/keeper/keeper.go

View workflow job for this annotation

GitHub Actions / golangci-lint

G601: Implicit memory aliasing in for loop. (gosec)
}); err != nil {
return err
}
Expand Down

0 comments on commit b9a81f6

Please sign in to comment.