Skip to content

Commit 2f747d0

Browse files
committed
Format.
1 parent 1efbf0c commit 2f747d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ngdart/lib/src/common/directives/ng_style.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ class NgStyle implements DoCheck {
8484

8585
void _setProperty(KeyValueChangeRecord record) {
8686
// HTMLElement, SVGElement and MathMLElement have same `style` property.
87-
(_ngElement as HTMLElement)
88-
.style
89-
.setProperty(unsafeCast(record.key), unsafeCast(record.currentValue ?? ''));
87+
// The cast should be omitted because both types are JSObject.
88+
(_ngElement as HTMLElement).style.setProperty(
89+
unsafeCast(record.key), unsafeCast(record.currentValue ?? ''));
9090
}
9191
}

0 commit comments

Comments
 (0)