Skip to content

Commit 2158ca4

Browse files
committed
Remove two unneded warning suppressions
1 parent 13f1927 commit 2158ca4

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

  • extractor/src/main/java/org/schabi/newpipe/extractor

extractor/src/main/java/org/schabi/newpipe/extractor/NewPipe.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public static StreamingService getServiceByUrl(String url) throws ExtractionExce
9999

100100
public static int getIdOfService(String serviceName) {
101101
try {
102-
//noinspection ConstantConditions
103102
return getService(serviceName).getServiceId();
104103
} catch (ExtractionException ignored) {
105104
return -1;
@@ -108,7 +107,6 @@ public static int getIdOfService(String serviceName) {
108107

109108
public static String getNameOfService(int id) {
110109
try {
111-
//noinspection ConstantConditions
112110
return getService(id).getServiceInfo().getName();
113111
} catch (Exception e) {
114112
System.err.println("Service id not known");

0 commit comments

Comments
 (0)