Skip to content

Commit e04c292

Browse files
cleaning
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
1 parent 4bfc6d7 commit e04c292

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Sources/NextcloudKit/TypeIdentifiers/NKTypeIdentifiers.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public actor NKTypeIdentifiers {
1919
// Internal resolver
2020
private let resolver = NKFilePropertyResolver()
2121

22-
public init() {}
22+
private init() {}
2323

2424
/// Resolves type info from file name and optional MIME type
2525
public func getInternalType(fileName: String, mimeType inputMimeType: String, directory: Bool, account: String) -> NKTypeIdentifierCache {
@@ -95,6 +95,10 @@ public final class NKTypeIdentifiersHelper {
9595
/// Internal actor reference (uses NKTypeIdentifiers.shared by default)
9696
private let actor: NKTypeIdentifiers
9797

98+
private init() {
99+
self.actor = .shared
100+
}
101+
98102
/// Init with optional custom actor (useful for testing)
99103
public init(actor: NKTypeIdentifiers = .shared) {
100104
self.actor = actor

0 commit comments

Comments
 (0)