From 208b98285ca08847ad127b7806870ea7daf1b572 Mon Sep 17 00:00:00 2001 From: Herr Ritschwumm Date: Mon, 15 Feb 2016 22:06:37 +0100 Subject: [PATCH] small cleanup --- src/main/scala/gitbucket/core/ssh/SshUtil.scala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/scala/gitbucket/core/ssh/SshUtil.scala b/src/main/scala/gitbucket/core/ssh/SshUtil.scala index 0663ca80f..42167edfa 100644 --- a/src/main/scala/gitbucket/core/ssh/SshUtil.scala +++ b/src/main/scala/gitbucket/core/ssh/SshUtil.scala @@ -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 }