Skip to content

Commit 57d224e

Browse files
committed
fix Unexpected newlines
1 parent d26d28f commit 57d224e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/workmanager/DefaultWorkManagerConfig.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ internal class DefaultWorkManagerConfig @Inject constructor(
3030
return if (disableNetworkConstraint != null) {
3131
// Boolean `io.element.disable_network_constraint` explicitly set in the .well-known file
3232
disableNetworkConstraint.not()
33-
}
34-
else if (credentials.discoveryInformation?.disableNetworkConstraint == true) {
33+
} else if (credentials.discoveryInformation?.disableNetworkConstraint == true) {
3534
// Boolean `io.element.disable_network_constraint` explicitly set to `true` in the login response
3635
false
37-
}
38-
else {
36+
} else {
3937
// Default, use the Network constraint
4038
true
4139
}

0 commit comments

Comments
 (0)