Skip to content
Snippets Groups Projects
Commit bbefd6fd authored by Bob Callaway's avatar Bob Callaway
Browse files

switch to strings.EqualFold

parent 8a7a144d
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ var logInfoCmd = &cobra.Command{
return nil, errors.New("tree size in signed tree head does not match value returned in API call")
}
if strings.ToLower(hex.EncodeToString(lr.RootHash)) != strings.ToLower(*logInfo.RootHash) {
if !strings.EqualFold(hex.EncodeToString(lr.RootHash), *logInfo.RootHash) {
return nil, errors.New("root hash in signed tree head does not match value returned in API call")
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment