Skip to content

Commit

Permalink
Allow public read access to existingRegistrations
Browse files Browse the repository at this point in the history
  • Loading branch information
bradfol committed Nov 21, 2024
1 parent 74db318 commit ffb7612
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Knit/DuplicateRegistrationDetector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public final class DuplicateRegistrationDetector {
public let name: String?
}

var existingRegistrations = Set<Key>()
/// Set of all registration Keys that have been detected so far.
/// Useful to check that the count of this set is non-zero to confirm the Detector was set up correctly.
public private(set) var existingRegistrations = Set<Key>()

public init(
duplicateWasDetected: ((Key) -> Void)? = nil
Expand Down

0 comments on commit ffb7612

Please sign in to comment.