Skip to content

Commit

Permalink
refactor: use strings.EqualFold
Browse files Browse the repository at this point in the history
Signed-off-by: linchizhen <[email protected]>
  • Loading branch information
linchizhen committed Jan 17, 2025
1 parent 1d306d6 commit bb55867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contribs/gnogenesis/internal/txs/txs_remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func execTxsRemove(cfg *txsCfg, io commands.IO, args []string) error {
}

// Check if the hashes match
if strings.ToLower(hash) == strings.ToLower(inputHash) {
if strings.EqualFold(hash, inputHash) {
index = indx

break
Expand Down

0 comments on commit bb55867

Please sign in to comment.