Remove a misguided require from GitOperation (#826)

This commit is contained in:
Fabian Henneke
2020-06-02 12:41:08 +02:00
committed by GitHub
parent 43ae4bbdb7
commit 0c01a5bbf9

View File

@@ -40,7 +40,6 @@ import kotlin.coroutines.resume
private class GitOperationCredentialFinder(val callingActivity: Activity, val connectionMode: ConnectionMode) : InteractivePasswordFinder() {
override fun askForPassword(cont: Continuation<String?>, isRetry: Boolean) {
require(connectionMode == ConnectionMode.Password)
val gitOperationPrefs = callingActivity.getEncryptedPrefs("git_operation")
val credentialPref: String
@StringRes val messageRes: Int