From 85454e7678f8f295ae72b8579aa443f9e45344cb Mon Sep 17 00:00:00 2001 From: Egon Elbre Date: Mon, 7 Aug 2017 14:34:21 +0300 Subject: cmd: fix megacheck warnings (#14912) * cmd: fix megacheck warnings * cmd: revert time.Until changes, keep readFloat --- cmd/puppeth/ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/puppeth/ssh.go') 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 -- cgit v1.2.3