Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions Sources/NextcloudKit/NextcloudKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,11 @@
eventMonitors: [NKMonitor(nkCommonInstance: self.nkCommonInstance)])
}()

#if swift(<6.0)
init() {
#if !os(watchOS)
startNetworkReachabilityObserver()
#endif
}
#else
public init() {
#if !os(watchOS)
startNetworkReachabilityObserver()
#endif
}
#endif

deinit {
#if !os(watchOS)
Expand Down Expand Up @@ -95,7 +87,7 @@
if nkCommonInstance.nksessions.filter({ $0.account == account }).first != nil {
return updateSession(account: account, urlBase: urlBase, userId: userId, password: password, userAgent: userAgent, nextcloudVersion: nextcloudVersion)
}

Check warning on line 90 in Sources/NextcloudKit/NextcloudKit.swift

View workflow job for this annotation

GitHub Actions / Lint

Trailing Whitespace Violation: Lines should not have trailing whitespace (trailing_whitespace)
let nkSession = NKSession(
nkCommonInstance: nkCommonInstance,
urlBase: urlBase,
Expand Down
Loading