Skip to content

Commit ee5f509

Browse files
isoossigurdm
andauthored
Update pkg/web_css/test/file_use_test.dart
Co-authored-by: Sigurd Meldgaard <[email protected]>
1 parent ed52338 commit ee5f509

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/web_css/test/file_use_test.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ void main() {
2020

2121
final files = await Directory('lib')
2222
.list(recursive: true)
23-
.where((f) => f is File && f.path.endsWith('.scss'))
24-
.cast<File>()
23+
.whereType<File>().where((f) => f.path.endsWith('.scss'))
2524
.map((f) => p.relative(f.path, from: 'lib'))
2625
.map((n) => n.substring(0, n.length - 5)) // without the .scss extension
2726
.toSet();

0 commit comments

Comments
 (0)