mirror of
https://github.com/gregtwallace/apc-p15-tool.git
synced 2025-07-26 00:12:57 +00:00
ssh: switch string comps to EqualFold func
This commit is contained in:
parent
c669621bd3
commit
7bf70c4d71
2 changed files with 4 additions and 4 deletions
pkg/apcssh
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue