Skip to content

Commit

Permalink
Fix DSL telemetry trigger condition (#2155)
Browse files Browse the repository at this point in the history
  • Loading branch information
evil159 authored May 17, 2024
1 parent b347612 commit 0b81f2d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ final class MapContentReconciler {

/// Increment telemetry counter once per StyleDSL usage on the single style
func triggerTelemetryIfNeeded(for node: MapContentNode) {
guard sendTelemetryOncePerStyle.continueOnce(), !node.childrenIsEmpty else { return }
Log.info(forMessage: "triggerTelemetryIfNeeded")
guard !node.childrenIsEmpty, sendTelemetryOncePerStyle.continueOnce() else { return }
sendTelemetry(\.styleDSL)
}
}
Expand Down

0 comments on commit 0b81f2d

Please sign in to comment.