Skip to content

Commit

Permalink
Improve search time for playlist image url
Browse files Browse the repository at this point in the history
  • Loading branch information
iamoscarliang committed Nov 10, 2024
1 parent 582e723 commit 4e42240
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ public Completable execute(
}

private String getFirstMusicImage(List<Music> musics, String id) {
Music first = null;
for (Music music : musics) {
if (Objects.equals(music.getId(), id)) {
first = music;
return music.getImageUrl();
}
}

return first.getImageUrl();
return "";
}

}

0 comments on commit 4e42240

Please sign in to comment.