Skip to content

Commit 74345f6

Browse files
committed
Use implicitly assigned raw values
1 parent a020cf0 commit 74345f6

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

Sources/NativePusher.swift

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ import Foundation
289289
self.delegate?.unsubscribedFromInterest?(name: interest)
290290
}
291291

292-
self.delegate?.debugLog?(message: "Success making \(change.stringValue) to \(interests)")
292+
self.delegate?.debugLog?(message: "Success making \(change.rawValue) to \(interests)")
293293

294294
self.failedRequestAttempts = 0
295295
successCallback(nil)
@@ -312,22 +312,11 @@ import Foundation
312312
}
313313
}
314314

315-
internal enum SubscriptionChange {
315+
internal enum SubscriptionChange: String {
316316
case subscribe
317317
case setSubscriptions
318318
case unsubscribe
319319

320-
internal func stringValue() -> String {
321-
switch self {
322-
case .subscribe:
323-
return "subscribe"
324-
case .setSubscriptions:
325-
return "setSubscriptions"
326-
case .unsubscribe:
327-
return "unsubscribe"
328-
}
329-
}
330-
331320
internal func httpMethod() -> String {
332321
switch self {
333322
case .subscribe:

0 commit comments

Comments
 (0)