Skip to content

Commit

Permalink
[fix] visitor can get disclosures
Browse files Browse the repository at this point in the history
  • Loading branch information
dtsiflit committed Oct 10, 2024
1 parent bf8d1ae commit 4c57907
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Utilities/ClaimVisitor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public protocol ClaimVisitor: Sendable {
public final class Visitor: ClaimVisitor {

nonisolated(unsafe) var disclosuresPerClaim: [JSONPointer: [Disclosure]] = [:]
nonisolated(unsafe) var disclosures: [Disclosure] {
disclosuresPerClaim.flatMap { $0.value }
}

public init() {
}
Expand Down

0 comments on commit 4c57907

Please sign in to comment.