Skip to content

Commit 045e91d

Browse files
Small refactor getPlayQueueFromCache
(cherry picked from commit 5525d20)
1 parent addf1e2 commit 045e91d

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/Player.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -567,11 +567,7 @@ private static PlayQueue getPlayQueueFromCache(@NonNull final Intent intent) {
567567
if (queueCache == null) {
568568
return null;
569569
}
570-
final PlayQueue newQueue = SerializedCache.getInstance().take(queueCache, PlayQueue.class);
571-
if (newQueue == null) {
572-
return null;
573-
}
574-
return newQueue;
570+
return SerializedCache.getInstance().take(queueCache, PlayQueue.class);
575571
}
576572

577573
private void initUIsForCurrentPlayerType() {

0 commit comments

Comments
 (0)