Skip to content

Commit 153f23b

Browse files
committed
invert incorrect false condition
1 parent 507416f commit 153f23b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commonMain/kotlin/com.adamratzman.spotify/SpotifyApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ public open class SpotifyClientApi(
644644
if (token.scopes == null) {
645645
null
646646
} else {
647-
!isTokenValid(false).isValid &&
647+
isTokenValid(false).isValid &&
648648
token.scopes?.contains(scope) == true &&
649649
scopes.all { token.scopes?.contains(it) == true }
650650
}

0 commit comments

Comments
 (0)