From 2158ca4060cc99cfa4df86d0c4b546b3abe24941 Mon Sep 17 00:00:00 2001 From: Stypox Date: Sat, 5 Jun 2021 14:15:44 +0200 Subject: [PATCH] Remove two unneded warning suppressions --- .../src/main/java/org/schabi/newpipe/extractor/NewPipe.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/NewPipe.java b/extractor/src/main/java/org/schabi/newpipe/extractor/NewPipe.java index fbb90a189..cdd536849 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/NewPipe.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/NewPipe.java @@ -99,7 +99,6 @@ public class NewPipe { public static int getIdOfService(String serviceName) { try { - //noinspection ConstantConditions return getService(serviceName).getServiceId(); } catch (ExtractionException ignored) { return -1; @@ -108,7 +107,6 @@ public class NewPipe { public static String getNameOfService(int id) { try { - //noinspection ConstantConditions return getService(id).getServiceInfo().getName(); } catch (Exception e) { System.err.println("Service id not known");