ChangeApi: Remove unnecessarily nested else clause

Change-Id: I4fe678df9912a087bb0bd2e3ad9e3b209db5b8b2
This commit is contained in:
David Pursehouse
2017-07-26 10:25:40 +01:00
parent 6c1a52b869
commit 3e61b9b465

View File

@@ -387,9 +387,8 @@ public class ChangeApi {
public static RestApi change(@Nullable String project, int id) {
if (project == null) {
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) {