Skip to content

Commit 029e9f1

Browse files
Rename parameter from areAttributes to isAttributes for consistency
1 parent 3d04068 commit 029e9f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

splitio_web/lib/splitio_web.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,32 +349,32 @@ class SplitioWeb extends SplitioPlatform {
349349
return _clients[key]!;
350350
}
351351

352-
JSAny? _convertValue(dynamic value, bool attributes) {
352+
JSAny? _convertValue(dynamic value, bool isAttributes) {
353353
if (value is bool) return value.toJS;
354354
if (value is num) return value.toJS; // covers int + double
355355
if (value is String) return value.toJS;
356356

357357
// properties do not support lists and sets
358-
if (attributes) {
358+
if (isAttributes) {
359359
if (value is List) return value.jsify();
360360
if (value is Set) return value.jsify();
361361
}
362362

363363
return null;
364364
}
365365

366-
JSObject _convertMap(Map<String, dynamic> dartMap, bool areAttributes) {
366+
JSObject _convertMap(Map<String, dynamic> dartMap, bool isAttributes) {
367367
final jsMap = JSObject();
368368

369369
dartMap.forEach((key, value) {
370-
final jsValue = _convertValue(value, areAttributes);
370+
final jsValue = _convertValue(value, isAttributes);
371371

372372
if (jsValue != null) {
373373
jsMap.setProperty(key.toJS, jsValue);
374374
} else {
375375
this._factory.settings.log.warn.callAsFunction(
376376
null,
377-
'Invalid ${areAttributes ? 'attribute' : 'property'} value: $value, for key: $key, will be ignored'
377+
'Invalid ${isAttributes ? 'attribute' : 'property'} value: $value, for key: $key, will be ignored'
378378
.toJS);
379379
}
380380
});

0 commit comments

Comments
 (0)