Skip to content

Commit

Permalink
dart format
Browse files Browse the repository at this point in the history
  • Loading branch information
tanderson-ld committed Oct 30, 2024
1 parent dc1eb11 commit 0008871
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ final class LDEvaluationResultSerialization {
final trackEvents = (json['trackEvents'] ?? false) as bool;
final trackReason = (json['trackReason'] ?? false) as bool;
final prerequisites = (json['prerequisites'] as List<dynamic>?)
?.map((e) => e as String)
.toList();
?.map((e) => e as String)
.toList();
final debugEventsUntilDateRaw = json['debugEventsUntilDate'] as num?;
final value = LDValueSerialization.fromJson(json['value']);
final jsonReason = json['reason'];
Expand Down
3 changes: 1 addition & 2 deletions packages/common_client/lib/src/ld_common_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ typedef EventProcessorFactory = EventProcessor Function(
required Duration diagnosticRecordingInterval,
required bool allAttributesPrivate,
required Set<AttributeReference> globalPrivateAttributes,
DiagnosticsManager? diagnosticsManager}
);
DiagnosticsManager? diagnosticsManager});

EventProcessor _defaultEventProcessorFactory(
{required LDLogger logger,
Expand Down
12 changes: 6 additions & 6 deletions packages/common_client/test/mock_eventprocessor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,32 @@ final class MockEventProcessor implements EventProcessor {
final customEvents = <CustomEvent>[];
final evalEvents = <EvalEvent>[];
final identifyEvents = <IdentifyEvent>[];

@override
Future<void> flush() async {
// no-op in this mock
}

@override
void processCustomEvent(CustomEvent event) {
customEvents.add(event);
}

@override
void processEvalEvent(EvalEvent event) {
evalEvents.add(event);
}

@override
void processIdentifyEvent(IdentifyEvent event) {
identifyEvents.add(event);
}

@override
void start() {
// no-op in this mock
}

@override
void stop() {
// no-op in this mock
Expand Down

0 comments on commit 0008871

Please sign in to comment.