Skip to content

Commit

Permalink
Remove a now unnecessary null assertion (#221)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
natebosch authored Mar 9, 2022
1 parent 29e5a41 commit 4616db5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.5.5

* No user-visible changes.

## 1.5.4

### Module Migrator
Expand Down
2 changes: 1 addition & 1 deletion lib/src/migrators/module.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ class _ModuleMigrationVisitor extends MigrationVisitor {
prefix.length < identifier.length &&
identifier.startsWith(prefix) &&
Parser.isIdentifier(identifier.substring(prefix.length))),
(prefix) => prefix!.length);
(prefix) => prefix.length);

/// Disallows `@use` after `@at-root` rules.
@override
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sass_migrator
version: 1.5.4
version: 1.5.5-dev
description: A tool for running migrations on Sass files
homepage: https://github.com/sass/migrator

Expand All @@ -9,7 +9,7 @@ environment:
dependencies:
args: ^2.1.0
charcode: ^1.2.0
collection: ^1.15.0
collection: ^1.16.0
file: ^6.1.0
glob: ^2.0.1
js: ^0.6.3
Expand Down

0 comments on commit 4616db5

Please sign in to comment.