Skip to content

Commit 784e562

Browse files
committed
Remove unnecessary return
1 parent 4586f61 commit 784e562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/logout/impl/src/main/kotlin/io/element/android/features/logout/impl/DefaultLogoutUseCase.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class DefaultLogoutUseCase @Inject constructor(
2121
) : LogoutUseCase {
2222
override suspend fun logout(ignoreSdkError: Boolean) {
2323
val currentSession = authenticationService.getLatestSessionId()
24-
return if (currentSession != null) {
24+
if (currentSession != null) {
2525
matrixClientProvider.getOrRestore(currentSession)
2626
.getOrThrow()
2727
.logout(userInitiated = true, ignoreSdkError = true)

0 commit comments

Comments
 (0)