File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments