Skip to content

Commit

Permalink
Merge pull request #188 from teresy/use-is-not-empty
Browse files Browse the repository at this point in the history
Faster isNotEmpty on collection
  • Loading branch information
aaronlademann-wf authored Oct 3, 2018
2 parents 45ff73a + 523979c commit 817dff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/transformer/declaration_parsing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class ParsedDeclarations {
}
}

if (noneOfAnyRequiredDecl && declarations.length != 0) {
if (noneOfAnyRequiredDecl && declarations.isNotEmpty) {
error(
'To define a component, a `@$annotationName` must be accompanied by '
'the following annotations within the same file: '
Expand Down

0 comments on commit 817dff5

Please sign in to comment.