Skip to content

Commit aa009b4

Browse files
committed
Fixed sonar warning
1 parent ca55a28 commit aa009b4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

app/src/main/java/org/schabi/newpipe/util/services/ServiceHelper.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,10 @@ public static int getImportInstructions(final int serviceId) {
114114
*/
115115
@StringRes
116116
public static int getImportInstructionsHint(final int serviceId) {
117-
switch (serviceId) {
118-
case 1:
119-
return R.string.import_soundcloud_instructions_hint;
120-
default:
121-
return -1;
117+
if (serviceId == 1) {
118+
return R.string.import_soundcloud_instructions_hint;
122119
}
120+
return -1;
123121
}
124122

125123
public static int getSelectedServiceId(final Context context) {

0 commit comments

Comments
 (0)