Remove two unneded warning suppressions
This commit is contained in:
parent
13f192704d
commit
2158ca4060
1 changed files with 0 additions and 2 deletions
|
@ -99,7 +99,6 @@ public class NewPipe {
|
||||||
|
|
||||||
public static int getIdOfService(String serviceName) {
|
public static int getIdOfService(String serviceName) {
|
||||||
try {
|
try {
|
||||||
//noinspection ConstantConditions
|
|
||||||
return getService(serviceName).getServiceId();
|
return getService(serviceName).getServiceId();
|
||||||
} catch (ExtractionException ignored) {
|
} catch (ExtractionException ignored) {
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -108,7 +107,6 @@ public class NewPipe {
|
||||||
|
|
||||||
public static String getNameOfService(int id) {
|
public static String getNameOfService(int id) {
|
||||||
try {
|
try {
|
||||||
//noinspection ConstantConditions
|
|
||||||
return getService(id).getServiceInfo().getName();
|
return getService(id).getServiceInfo().getName();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.err.println("Service id not known");
|
System.err.println("Service id not known");
|
||||||
|
|
Loading…
Reference in a new issue