Skip to content

Commit 272fb49

Browse files
authored
Always make NextcloudKit initialiser public (#136)
It otherwise doesn't make much sense for NextcloudKit to be an open class Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
1 parent 081cd91 commit 272fb49

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

Sources/NextcloudKit/NextcloudKit.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,11 @@ open class NextcloudKit {
3131
eventMonitors: [NKMonitor(nkCommonInstance: self.nkCommonInstance)])
3232
}()
3333

34-
#if swift(<6.0)
35-
init() {
36-
#if !os(watchOS)
37-
startNetworkReachabilityObserver()
38-
#endif
39-
}
40-
#else
4134
public init() {
4235
#if !os(watchOS)
4336
startNetworkReachabilityObserver()
4437
#endif
4538
}
46-
#endif
4739

4840
deinit {
4941
#if !os(watchOS)

0 commit comments

Comments
 (0)