Irrelevant `else`

There is no need to use the `else` since the `if` statement returns implicitly.
pull/4367/head
Stefan Aichholzer 9 years ago committed by GitHub
parent d0de9062bb
commit 7c653b708f
  1. 4
      client/lib/handleError.js

@ -9,7 +9,7 @@ this.handleError = function(error, useToastr = true) {
if (useToastr) {
return toastr.error(TAPi18n.__(error.error, error.details), error.details && error.details.errorTitle ? TAPi18n.__(error.details.errorTitle) : null);
} else {
return TAPi18n.__(error.error, error.details);
}
return TAPi18n.__(error.error, error.details);
};

Loading…
Cancel
Save