Skip to content

Commit

Permalink
fix(scope): return null to supress an analyzer error
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb authored and chalin committed Feb 25, 2014
1 parent 6688206 commit 4592387
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/core/scope.dart
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,12 @@ class Scope {
if (expression is String && expression.isNotEmpty) {
var obj = locals == null ? context : new ScopeLocals(context, locals);
return rootScope._parser(expression).eval(obj);
} else {
assert(locals == null);
if (expression is EvalFunction1) return expression(context);
if (expression is EvalFunction0) return expression();
}

assert(locals == null);
if (expression is EvalFunction1) return expression(context);
if (expression is EvalFunction0) return expression();
return null;
}

dynamic applyInZone([expression, Map locals]) =>
Expand Down

0 comments on commit 4592387

Please sign in to comment.