Omit unnecessary null check on ranges

master
Peter Marheine 6 years ago
parent 47eefc1369
commit 3e97186043
  1. 3
      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 null;
}
@Nullable

Loading…
Cancel
Save