OSDN Git Service

AppDelegateからウインドウに関する部分を分離した
[kcd/KCD.git] / KCD / CombinedCommand.swift
index 4a11a6f..3a41220 100644 (file)
@@ -37,9 +37,9 @@ class CombinedCommand: JSONCommand {
             return
         }
         
-        arguments["api_combined_type"]
-            .flatMap { Int($0) }
-            .flatMap { CombineType(rawValue:$0) }
+        parameter["api_combined_type"]
+            .int
+            .flatMap { CombineType(rawValue: $0) }
             .map { postNotification(withType: $0) }
     }