Small refactor getPlayQueueFromCache

This commit is contained in:
AbsurdlyLongUsername 2026-02-05 04:28:00 +00:00
parent 6f9c0beac6
commit 10fc6bf2a3

View file

@ -567,11 +567,7 @@ public final class Player implements PlaybackListener, Listener {
if (queueCache == null) { if (queueCache == null) {
return null; return null;
} }
final PlayQueue newQueue = SerializedCache.getInstance().take(queueCache, PlayQueue.class); return SerializedCache.getInstance().take(queueCache, PlayQueue.class);
if (newQueue == null) {
return null;
}
return newQueue;
} }
private void initUIsForCurrentPlayerType() { private void initUIsForCurrentPlayerType() {