Skip to content

Commit c17835f

Browse files
fix linting
1 parent 14dc595 commit c17835f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

baked_in.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,11 +1414,8 @@ func isBase32(fl FieldLevel) bool {
14141414
}
14151415

14161416
_, err := base32.StdEncoding.DecodeString(fl.Field().String())
1417-
if err != nil {
1418-
return false
1419-
}
14201417

1421-
return true
1418+
return err == nil
14221419
}
14231420

14241421
// isBase64 is the validation function for validating if the current field's value is a valid base 64.

0 commit comments

Comments
 (0)