Skip to content

Commit

Permalink
Merge pull request #134 from treastrain/update-concurrency
Browse files Browse the repository at this point in the history
Update some static properties for concurrency-safe
  • Loading branch information
treastrain authored Feb 4, 2024
2 parents 996ad15 + 97e433a commit 2836cd0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Sources/NDEFMessage/NDEFMessage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ extension NDEFMessage {
}

extension NDEFMessage.DetectResult {
public static var success: Self = .success(alertMessage: nil)
public static var restartPolling: Self = .restartPolling(alertMessage: nil)
public static let success: Self = .success(alertMessage: nil)
public static let restartPolling: Self = .restartPolling(alertMessage: nil)
}

#if canImport(CoreNFC)
Expand Down
4 changes: 2 additions & 2 deletions Sources/NDEFTag/NDEFTag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ extension NDEFTag {
}

extension NDEFTag.DetectResult {
public static var success: Self = .success(alertMessage: nil)
public static var restartPolling: Self = .restartPolling(alertMessage: nil)
public static let success: Self = .success(alertMessage: nil)
public static let restartPolling: Self = .restartPolling(alertMessage: nil)

public static func failure(with error: any Error) -> Self {
.failure(errorMessage: error.localizedDescription)
Expand Down
4 changes: 2 additions & 2 deletions Sources/NativeTag/NativeTag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ extension NativeTag {
}

extension NativeTag.DetectResult {
public static var success: Self = .success(alertMessage: nil)
public static var restartPolling: Self = .restartPolling(alertMessage: nil)
public static let success: Self = .success(alertMessage: nil)
public static let restartPolling: Self = .restartPolling(alertMessage: nil)

public static func failure(with error: any Error) -> Self {
.failure(errorMessage: error.localizedDescription)
Expand Down

0 comments on commit 2836cd0

Please sign in to comment.