Skip to content

Commit

Permalink
add isDry for new unique params
Browse files Browse the repository at this point in the history
  • Loading branch information
SabrinaTardio committed Dec 4, 2024
1 parent cc6c1b6 commit b567a22
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/PixelKit/PixelKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,14 @@ public final class PixelKit {
newParams = nil
}

if !dryRun, let newParams {
let pixelNameAndParams = pixelName + newParams.toString()
if frequency == .uniqueByNameAndParameters, pixelHasBeenFiredEver(pixelNameAndParams) {

Check failure on line 460 in Sources/PixelKit/PixelKit.swift

View workflow job for this annotation

GitHub Actions / Run SwiftLint

There should be no space before and one after any comma (comma)
onComplete(false, nil)
return
}
}

let newError: Error?

if let event = event as? PixelKitEventV2,
Expand Down

0 comments on commit b567a22

Please sign in to comment.