Skip to content

Commit

Permalink
fix fmt error
Browse files Browse the repository at this point in the history
  • Loading branch information
mfdeveloper508 committed Jul 27, 2023
1 parent 908ea6c commit 013d7c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/segments/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (e *Element) VerifyCode(data, name string, args ...string) (int, string, er

if length < codeLen {
return 0, "", fmt.Errorf("%s segment has not enough input data", name)
} else if strings.ToUpper(name) != strings.ToUpper(data[:codeLen]) {
} else if !strings.EqualFold(strings.ToUpper(name), strings.ToUpper(data[:codeLen])) {
return 0, "", fmt.Errorf("%s segment contains invalid code", name)
}

Expand Down

0 comments on commit 013d7c8

Please sign in to comment.