Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
LisoUseInAIKyrios committed Oct 11, 2023
1 parent 291129e commit f971c93
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ public static void newPlayerResponseVideoId(String videoId) {
return;
}
synchronized (lastVideoIds) {
if (lastVideoIds.containsKey(videoId)) {
return;
if (lastVideoIds.put(videoId, Boolean.TRUE) == null) {
LogHelper.printDebug(() -> "New video id: " + videoId);
}
LogHelper.printDebug(() -> "New video id: " + videoId);
lastVideoIds.put(videoId, Boolean.TRUE);
}
} catch (Exception ex) {
LogHelper.printException(() -> "newPlayerResponseVideoId failure", ex);
Expand Down

0 comments on commit f971c93

Please sign in to comment.