cmd: fix megacheck warnings (#14912)
* cmd: fix megacheck warnings * cmd: revert time.Until changes, keep readFloat
This commit is contained in:
committed by
Péter Szilágyi
parent
8c2cf3c66c
commit
85454e7678
@ -122,7 +122,7 @@ func dial(server string, pubkey []byte) (*sshClient, error) {
|
||||
}
|
||||
}
|
||||
// If a public key exists for this SSH server, check that it matches
|
||||
if bytes.Compare(pubkey, key.Marshal()) == 0 {
|
||||
if bytes.Equal(pubkey, key.Marshal()) {
|
||||
return nil
|
||||
}
|
||||
// We have a mismatch, forbid connecting
|
||||
|
Reference in New Issue
Block a user