QuoteUtil: Remove unneeded nesting According to our project style guidelines we avoid unneeded nesting. Also in Eclipse this is shown as a warning. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: I2b2f41512ca49715937ee518dc0854732182facc
diff --git a/src/main/java/com/googlesource/gerrit/plugins/download/command/QuoteUtil.java b/src/main/java/com/googlesource/gerrit/plugins/download/command/QuoteUtil.java index a08cbae..4154c9f 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/download/command/QuoteUtil.java +++ b/src/main/java/com/googlesource/gerrit/plugins/download/command/QuoteUtil.java
@@ -22,8 +22,7 @@ // Avoid quotes if the chars are entirely "safe". if (string.matches("^[a-zA-Z0-9@_.:/-]+$")) { return string; - } else { - return "\"" + string + "\""; } + return "\"" + string + "\""; } }