mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 04:34:59 +01:00
Remove casts that are now unnecessary
This commit is contained in:
parent
b949f9fe72
commit
c626bf5613
@ -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>(
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user