ChangeApi: Remove unnecessarily nested else clause
Change-Id: I4fe678df9912a087bb0bd2e3ad9e3b209db5b8b2
This commit is contained in:
@@ -387,9 +387,8 @@ public class ChangeApi {
|
|||||||
public static RestApi change(@Nullable String project, int id) {
|
public static RestApi change(@Nullable String project, int id) {
|
||||||
if (project == null) {
|
if (project == null) {
|
||||||
return new RestApi("/changes/").id(String.valueOf(id));
|
return new RestApi("/changes/").id(String.valueOf(id));
|
||||||
} else {
|
|
||||||
return new RestApi("/changes/").id(project, id);
|
|
||||||
}
|
}
|
||||||
|
return new RestApi("/changes/").id(project, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String emptyToNull(String str) {
|
public static String emptyToNull(String str) {
|
||||||
|
|||||||
Reference in New Issue
Block a user