Scott recommendation to simplify.
This commit is contained in:
parent
d91dbbd460
commit
435b5a4c97
@ -36,8 +36,6 @@ import Foundation
|
||||
|
||||
@objc(addErrorToLog:)
|
||||
open func addError(toLog errorObject: MVMCoreErrorObject) {
|
||||
// Guard against doing anything further if the logging handler is its own delegate.
|
||||
guard let loggingDelegate = MVMCoreObject.sharedInstance()?.loggingDelegate, loggingDelegate as? NSObject !== self else { return }
|
||||
loggingDelegate.addError(toLog: errorObject)
|
||||
// Subclass to handle.
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user