chore: lint v2 (#24118)

This commit is contained in:
Alex | Interchain Labs
2025-03-25 15:57:24 +00:00
committed by GitHub
parent 9acd7716dd
commit b7a20b81f6
87 changed files with 298 additions and 288 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ func NewParamsFromPath(path string) (*BIP44Params, error) {
fmt.Errorf("fourth and fifth field in path must not be hardened (ie. not contain the suffix ', got %s and %s", spl[3], spl[4])
}
if !(change == 0 || change == 1) {
if change != 0 && change != 1 {
return nil, fmt.Errorf("change field can only be 0 or 1")
}