small cleanup

This commit is contained in:
Herr Ritschwumm
2016-02-15 22:06:37 +01:00
parent 247b664654
commit 208b98285c

View File

@@ -31,9 +31,7 @@ object SshUtil {
}
}
def fingerPrint(key: String): Option[String] = str2PublicKey(key) match {
case Some(publicKey) => Some(KeyUtils.getFingerPrint(publicKey))
case None => None
}
def fingerPrint(key: String): Option[String] =
str2PublicKey(key) map KeyUtils.getFingerPrint
}