Skip to content

Commit

Permalink
Use null-aware spread operator
Browse files Browse the repository at this point in the history
  • Loading branch information
srujzs committed Sep 20, 2024
1 parent 1950d7f commit d3d9a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web_generator/lib/src/translator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ class Translator {
final decl = _typeToDeclaration[interfacelikeName]! as idl.Interfacelike;
for (final interfacelike in [
decl,
..._typeToPartials[interfacelikeName] ?? <idl.Interfacelike>[]
...?_typeToPartials[interfacelikeName]
]) {
_addOrUpdateInterfaceLike(interfacelike);
}
Expand All @@ -735,7 +735,7 @@ class Translator {
for (final mixin in mixins) {
for (final interfacelike in [
_typeToDeclaration[mixin] as idl.Interfacelike,
..._typeToPartials[mixin] ?? <idl.Interfacelike>[]
...?_typeToPartials[mixin]
]) {
_interfacelikes[interfacelikeName]!.update(interfacelike);
}
Expand Down

0 comments on commit d3d9a00

Please sign in to comment.