refactor: update swiftlint to 39.1

This commit is contained in:
Vlad
2021-01-11 23:26:23 +03:00
parent 7ffac03d73
commit 5afbc2ffa5
106 changed files with 318 additions and 322 deletions
@@ -63,28 +63,28 @@ open class GeneralDataLoadingViewModel<ResultType>: BaseViewModel, GeneralDataLo
/// Returns observable that emits current loading state.
open var loadingStateObservable: Observable<LoadingState> {
return loadingStateRelay.asObservable()
loadingStateRelay.asObservable()
}
/// Returns driver that emits current loading state.
open var loadingStateDriver: Driver<LoadingState> {
return loadingStateRelay.asDriver()
loadingStateRelay.asDriver()
}
/// By default returns true if loading state == .result.
open var hasContent: Bool {
return currentLoadingState.hasResult
currentLoadingState.hasResult
}
/// Returns current result if it exists.
public var currentResult: ResultType? {
return currentLoadingState.result
currentLoadingState.result
}
/// Current state of loading process.
private(set) public var currentLoadingState: LoadingState {
get {
return loadingStateRelay.value
loadingStateRelay.value
}
set {
loadingStateRelay.accept(newValue)