Skip to content

Commit 5b104a6

Browse files
fix issue with null removal
1 parent 67457d5 commit 5b104a6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/client.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,7 @@ class Client {
141141
await this.init();
142142
}
143143

144-
params.keys.forEach((key) {
145-
if (params[key] == null) {
146-
params.remove(key);
147-
}
148-
});
144+
params.removeWhere((key,value) => value == null);
149145

150146
// Origin is hardcoded for testing
151147
Options options = Options(

0 commit comments

Comments
 (0)