1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2026-04-20 13:51:24 +00:00

fix: reduce complexity

This commit is contained in:
ThetaDev
2023-03-18 16:28:09 +01:00
parent dba53d23aa
commit 77649d388c
2 changed files with 50 additions and 48 deletions

View File

@@ -212,12 +212,7 @@ public final class ListHelper {
continue;
}
final String trackId;
if (stream.getAudioTrackId() != null) {
trackId = stream.getAudioTrackId();
} else {
trackId = "";
}
final String trackId = Objects.toString(stream.getAudioTrackId(), "");
final AudioStream presentStream = collectedStreams.get(trackId);
if (presentStream == null || cmp.compare(stream, presentStream) > 0) {