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

Commit 933ca7b

Browse files
Remove unnecessary else
1 parent e50894b commit 933ca7b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ng/compile.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1429,10 +1429,9 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
14291429
if (!attrs[attrName]) {
14301430
if (optional) {
14311431
return;
1432-
} else {
1433-
throw Error('Non-assignable model expression: ' + attrs[attrName]
1434-
+ ' (directive: ' + newIsolateScopeDirective.name + ')');
14351432
}
1433+
throw Error('Non-assignable model expression: ' + attrs[attrName]
1434+
+ ' (directive: ' + newIsolateScopeDirective.name + ')');
14361435
}
14371436
parentGet = $parse(attrs[attrName]);
14381437
if (parentGet.literal) {

0 commit comments

Comments
 (0)