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) {