Remove catch case for unthrown EmailException This block cannot throw the exception, so remove it. Change-Id: I8356b452fd4d6cdf0c08a722cb08ca94e1802e19
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/mail/OutgoingEmail.java b/gerrit-server/src/main/java/com/google/gerrit/server/mail/OutgoingEmail.java index 32f74bc..49acda8 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/mail/OutgoingEmail.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/mail/OutgoingEmail.java
@@ -388,8 +388,6 @@ StringWriter w = new StringWriter(); template.merge(velocityContext, w); return w.toString(); - } catch (EmailException e) { - throw e; } catch (Exception e) { throw new EmailException("Cannot format velocity template " + name, e); }