Skip to content

Commit 794f90c

Browse files
committed
Fixed credentials were requested when already cached
Fixes #279
1 parent 01f8fec commit 794f90c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/jetpackduba/gitnuro/credentials/HttpCredentialsProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class HttpCredentialsProvider @AssistedInject constructor(
8181
isLfs = false,
8282
)
8383

84-
if (cachedCredentials == null || appSettingsRepository.cacheCredentialsInMemory) {
84+
if (cachedCredentials == null || !appSettingsRepository.cacheCredentialsInMemory) {
8585
val credentials = askForCredentials()
8686

8787
userItem.value = credentials.user

0 commit comments

Comments
 (0)