Skip to content

Commit

Permalink
fix gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie committed Oct 22, 2024
1 parent b701200 commit c889ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/simulation/sim/sim_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func AppStateFromGenesisFileFn(
cdc codec.JSONCodec,
genesisFile string,
) (tmtypes.GenesisDoc, []simtypes.Account, error) {
bytes, err := os.ReadFile(genesisFile)
bytes, err := os.ReadFile(genesisFile) // #nosec G304 -- genesisFile value is controlled

Check warning on line 251 in tests/simulation/sim/sim_state.go

View check run for this annotation

Codecov / codecov/patch

tests/simulation/sim/sim_state.go#L251

Added line #L251 was not covered by tests
if err != nil {
panic(err)
}
Expand Down

0 comments on commit c889ab1

Please sign in to comment.