Skip to content
Snippets Groups Projects
Commit 7c653b70 authored by Stefan Aichholzer's avatar Stefan Aichholzer Committed by GitHub
Browse files

Irrelevant `else`

There is no need to use the `else` since the `if` statement returns implicitly.
parent d0de9062
No related branches found
No related tags found
No related merge requests found
......@@ -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);
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment