ssh: switch string comps to EqualFold func

This commit is contained in:
Greg T. Wallace 2024-06-18 21:30:39 -04:00
parent c669621bd3
commit 7bf70c4d71
2 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ func (cli *Client) RestartWebUI() error {
return err
}
if strings.ToLower(result.code) != "e000" {
if !strings.EqualFold(result.code, "e000") {
return fmt.Errorf("apcssh: failed to restart web ui (%s: %s)", result.code, result.codeText)
}