Remove casts that are now unnecessary

This commit is contained in:
Natalie Weizenbaum 2018-06-15 13:54:59 -07:00
parent b949f9fe72
commit c626bf5613
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ final _isUndefined = new JSFunction("value", "return value === undefined;");
external Function get _JSError;
/// Returns whether [value] is a JS Error object.
bool isJSError(value) => instanceof(value, _JSError) as bool;
bool isJSError(value) => instanceof(value, _JSError);
/// Invokes [function] with [thisArg] as `this`.
R call2<R, A1, A2>(

View File

@ -25,5 +25,5 @@ T parseValue<T>(String source) {
}
/// A matcher that matches values that are JS `instanceof` [type].
Matcher isJSInstanceOf(Function type) => predicate(
(value) => instanceof(value, type) as bool, "to be an instance of $type");
Matcher isJSInstanceOf(Function type) =>
predicate((value) => instanceof(value, type), "to be an instance of $type");