Skip to content

Commit e173fcb

Browse files
committed
post-rebase fix and formatting
1 parent 333303e commit e173fcb

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

FirebaseRemoteConfig/SwiftNew/ConfigRealtime.swift

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -501,12 +501,13 @@ class ConfigRealtime: NSObject, URLSessionDataDelegate {
501501
evaluateStreamResponse(response)
502502
}
503503
} catch {
504-
let wrappedError = NSError(domain: RemoteConfigUpdateErrorDomain,
505-
code: RemoteConfigUpdateError.messageInvalid.rawValue,
506-
userInfo: [
507-
NSLocalizedDescriptionKey: "Unable to parse ConfigUpdate. \(strData)",
508-
NSUnderlyingErrorKey: error,
509-
])
504+
let wrappedError =
505+
NSError(domain: ConfigConstants.RemoteConfigUpdateErrorDomain,
506+
code: RemoteConfigUpdateError.messageInvalid.rawValue,
507+
userInfo: [
508+
NSLocalizedDescriptionKey: "Unable to parse ConfigUpdate. \(strData)",
509+
NSUnderlyingErrorKey: error,
510+
])
510511
propagateErrors(wrappedError)
511512
return
512513
}
@@ -524,11 +525,12 @@ class ConfigRealtime: NSObject, URLSessionDataDelegate {
524525
}
525526
if isRealtimeDisabled {
526527
pauseRealtimeStream()
527-
let error = NSError(domain: ConfigConstants.RemoteConfigUpdateErrorDomain,
528-
code: RemoteConfigUpdateError.unavailable.rawValue,
529-
userInfo: [
530-
NSLocalizedDescriptionKey: "The server is temporarily unavailable. Try again in a few minutes.",
531-
])
528+
let error =
529+
NSError(domain: ConfigConstants.RemoteConfigUpdateErrorDomain,
530+
code: RemoteConfigUpdateError.unavailable.rawValue,
531+
userInfo: [
532+
NSLocalizedDescriptionKey: "The server is temporarily unavailable. Try again in a few minutes.",
533+
])
532534
propagateErrors(error)
533535
} else {
534536
let clientTemplateVersion = Int(configFetch.templateVersionNumber) ?? 0

0 commit comments

Comments
 (0)