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 6a45567 commit 5497493
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 { //nolint: G306
if err := os.WriteFile(dir+"/keyhash", passwordHash, 0o555); err != nil { //nolint: gosec

Check failure

Code scanning / gosec

Expect WriteFile permissions to be 0600 or less Error

Expect WriteFile permissions to be 0600 or less
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, //nolint: G601
TallyResult: &proposal.FinalTallyResult, //nolint: gosec

Check failure

Code scanning / gosec

Implicit memory aliasing in for loop. Error

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

0 comments on commit 5497493

Please sign in to comment.