Remove redundant if else
Signed-off-by: Philip Laine <philip.laine@gmail.com>
This commit is contained in:
parent
73301df023
commit
0a1631dc5a
|
@ -219,11 +219,7 @@ func (k knownKey) matches(host string, hostkey git2go.HostkeyCertificate) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
hasher.Write(k.key.Marshal())
|
hasher.Write(k.key.Marshal())
|
||||||
if bytes.Compare(hasher.Sum(nil), fingerprint) != 0 {
|
return bytes.Compare(hasher.Sum(nil), fingerprint) == 0
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func containsHost(hosts []string, host string) bool {
|
func containsHost(hosts []string, host string) bool {
|
||||||
|
|
Loading…
Reference in New Issue