Skip to content

Commit db5c474

Browse files
committed
refactor: use nonNulls instead of whereNotNull() method
1 parent 7f17cdd commit db5c474

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/src/scripts_parser/events/execution/command_executed.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'package:collection/collection.dart';
21
import 'package:rps/rps.dart';
32
import 'dart:math' as math;
43

@@ -98,9 +97,9 @@ class CommandExecuted extends ExecutionEvent {
9897
return [
9998
filledCommand,
10099
_serializeArguments(arguments.sublist(lastUsed + 1))
101-
].whereNotNull().join(' ');
100+
].nonNulls.join(' ');
102101
} else {
103-
return [command, _serializeArguments(arguments)].whereNotNull().join(' ');
102+
return [command, _serializeArguments(arguments)].nonNulls.join(' ');
104103
}
105104
}
106105

0 commit comments

Comments
 (0)