commit | b8d4b4b20fba046cc409abc7e5a4375d267c5832 | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Fri Jun 15 09:16:35 2018 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Fri Jun 15 09:16:35 2018 +0900 |
tree | 6b8b73053dc962320dec8022fb4eef05992b15d7 | |
parent | cf9d781e1a5a1fd64b6d98a019bfe3f7ca9d8560 [diff] |
Remove unnecessarily nested else-blocks Change-Id: Iab2384e008793ba292d9f44e0521de26d503a375
diff --git a/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaItsFacade.java b/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaItsFacade.java index 0895f1b..23aa019 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaItsFacade.java +++ b/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaItsFacade.java
@@ -63,8 +63,10 @@ new Callable<String>() { @Override public String call() throws Exception { - if (check.equals(Check.ACCESS)) return healthCheckAccess(); - else return healthCheckSysinfo(); + if (check.equals(Check.ACCESS)) { + return healthCheckAccess(); + } + return healthCheckSysinfo(); } }); } @@ -184,8 +186,10 @@ continue; } - if (ex instanceof IOException) throw ((IOException) ex); - else throw new IOException(ex); + if (ex instanceof IOException) { + throw ((IOException) ex); + } + throw new IOException(ex); } } }