From b6414ebb6c8fface021736974315f6a2f1bd2a45 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 11 Oct 2019 23:27:53 +0200 Subject: [PATCH] Simplify a condition --- .../main/java/org/airsonic/player/domain/MusicIndex.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/airsonic-main/src/main/java/org/airsonic/player/domain/MusicIndex.java b/airsonic-main/src/main/java/org/airsonic/player/domain/MusicIndex.java index f0d2de31..b2981106 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/domain/MusicIndex.java +++ b/airsonic-main/src/main/java/org/airsonic/player/domain/MusicIndex.java @@ -100,11 +100,7 @@ public class MusicIndex implements Serializable { final MusicIndex musicIndex = (MusicIndex) o; - if (!Objects.equals(index, musicIndex.index)) { - return false; - } - - return true; + return Objects.equals(index, musicIndex.index); } /**