diff options
author | Egon Elbre <egonelbre@gmail.com> | 2017-08-07 19:34:21 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-08-07 19:34:21 +0800 |
commit | 85454e7678f8f295ae72b8579aa443f9e45344cb (patch) | |
tree | 264f1ed9c86a0c6abec55eb3dd59603b53c82d0a /cmd/puppeth/ssh.go | |
parent | 8c2cf3c66cf1d678b8b22e2c6245976058bfb525 (diff) | |
download | go-tangerine-85454e7678f8f295ae72b8579aa443f9e45344cb.tar go-tangerine-85454e7678f8f295ae72b8579aa443f9e45344cb.tar.gz go-tangerine-85454e7678f8f295ae72b8579aa443f9e45344cb.tar.bz2 go-tangerine-85454e7678f8f295ae72b8579aa443f9e45344cb.tar.lz go-tangerine-85454e7678f8f295ae72b8579aa443f9e45344cb.tar.xz go-tangerine-85454e7678f8f295ae72b8579aa443f9e45344cb.tar.zst go-tangerine-85454e7678f8f295ae72b8579aa443f9e45344cb.zip |
cmd: fix megacheck warnings (#14912)
* cmd: fix megacheck warnings
* cmd: revert time.Until changes, keep readFloat
Diffstat (limited to 'cmd/puppeth/ssh.go')
-rw-r--r-- | cmd/puppeth/ssh.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/puppeth/ssh.go b/cmd/puppeth/ssh.go index 93668945c..26f846685 100644 --- a/cmd/puppeth/ssh.go +++ b/cmd/puppeth/ssh.go @@ -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 |