mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 15:05:50 +01:00
Fix bug #340
This commit is contained in:
@@ -28,6 +28,9 @@ object SshUtil {
|
||||
}
|
||||
}
|
||||
|
||||
def fingerPrint(key: String): String = KeyUtils.getFingerPrint(str2PublicKey(key).get)
|
||||
def fingerPrint(key: String): Option[String] = str2PublicKey(key) match {
|
||||
case Some(publicKey) => Some(KeyUtils.getFingerPrint(publicKey))
|
||||
case None => None
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user