diff --git a/src/main/scala/gitbucket/core/ssh/SshUtil.scala b/src/main/scala/gitbucket/core/ssh/SshUtil.scala index 0663ca8..42167ed 100644 --- a/src/main/scala/gitbucket/core/ssh/SshUtil.scala +++ b/src/main/scala/gitbucket/core/ssh/SshUtil.scala @@ -31,9 +31,7 @@ } } - 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 }