Skip to content

Commit 4616db5

Browse files
authored
Remove a now unnecessary null assertion (#221)
In the latest version of `package:collection` the argument type for the callback in `maxBy` was tightened since it has unnecessarily been marked as nullable. Remove the null assertion and bump the minimum version of `collection`.
1 parent 29e5a41 commit 4616db5

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.5.5
2+
3+
* No user-visible changes.
4+
15
## 1.5.4
26

37
### Module Migrator

lib/src/migrators/module.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ class _ModuleMigrationVisitor extends MigrationVisitor {
13211321
prefix.length < identifier.length &&
13221322
identifier.startsWith(prefix) &&
13231323
Parser.isIdentifier(identifier.substring(prefix.length))),
1324-
(prefix) => prefix!.length);
1324+
(prefix) => prefix.length);
13251325

13261326
/// Disallows `@use` after `@at-root` rules.
13271327
@override

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sass_migrator
2-
version: 1.5.4
2+
version: 1.5.5-dev
33
description: A tool for running migrations on Sass files
44
homepage: https://github.com/sass/migrator
55

@@ -9,7 +9,7 @@ environment:
99
dependencies:
1010
args: ^2.1.0
1111
charcode: ^1.2.0
12-
collection: ^1.15.0
12+
collection: ^1.16.0
1313
file: ^6.1.0
1414
glob: ^2.0.1
1515
js: ^0.6.3

0 commit comments

Comments
 (0)