Respond to CR.

pull/1/head
Matthew Chen 8 years ago
parent f148003fb3
commit 1be828574d

@ -19,10 +19,10 @@ public class SwiftSingletons: NSObject {
} }
let singletonClassName = String(describing:type(of:singleton)) let singletonClassName = String(describing:type(of:singleton))
guard !classSet.contains(singletonClassName) else { guard !classSet.contains(singletonClassName) else {
owsFail("\(self.logTag()) in \(#function) Duplicate singleton: \(singletonClassName).") owsFail("\(self.logTag) in \(#function) Duplicate singleton: \(singletonClassName).")
return return
} }
Logger.verbose("\(self.logTag()) in \(#function) Registering singleton: \(singletonClassName).") Logger.verbose("\(self.logTag) in \(#function) Registering singleton: \(singletonClassName).")
classSet.insert(singletonClassName) classSet.insert(singletonClassName)
} }

Loading…
Cancel
Save