Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Remove unnecessary else
Browse files Browse the repository at this point in the history
  • Loading branch information
panuhorsmalahti committed Nov 24, 2014
1 parent e50894b commit 933ca7b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ng/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1429,10 +1429,9 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
if (!attrs[attrName]) {
if (optional) {
return;
} else {
throw Error('Non-assignable model expression: ' + attrs[attrName]
+ ' (directive: ' + newIsolateScopeDirective.name + ')');
}
throw Error('Non-assignable model expression: ' + attrs[attrName]
+ ' (directive: ' + newIsolateScopeDirective.name + ')');
}
parentGet = $parse(attrs[attrName]);
if (parentGet.literal) {
Expand Down

0 comments on commit 933ca7b

Please sign in to comment.