From 3e9718604370f7efd0a8a140f32c31bfb74f73ff Mon Sep 17 00:00:00 2001 From: Peter Marheine Date: Thu, 23 May 2019 10:50:20 +1000 Subject: [PATCH] Omit unnecessary null check on ranges --- .../org/airsonic/player/controller/StreamController.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/airsonic-main/src/main/java/org/airsonic/player/controller/StreamController.java b/airsonic-main/src/main/java/org/airsonic/player/controller/StreamController.java index 4922db3d..2041d884 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/controller/StreamController.java +++ b/airsonic-main/src/main/java/org/airsonic/player/controller/StreamController.java @@ -343,11 +343,8 @@ public class StreamController { // Second, look for "offsetSeconds" request parameter. String offsetSeconds = request.getParameter("offsetSeconds"); range = parseAndConvertOffsetSeconds(offsetSeconds, file); - if (range != null) { - return range; - } + return range; - return null; } @Nullable