Remove two unneded warning suppressions

This commit is contained in:
Stypox 2021-06-05 14:15:44 +02:00
parent 13f192704d
commit 2158ca4060
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 0 additions and 2 deletions

View File

@ -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");