OSDN Git Service

不要となっていたプロパティを削除
[kcd/KCD.git] / KCD / DestroyShipCommand.swift
index 8d5d684..d107f64 100644 (file)
@@ -10,11 +10,9 @@ import Cocoa
 
 final class DestroyShipCommand: JSONCommand {
     
-    override class func canExecuteAPI(_ api: String) -> Bool {
+    override class func canExecuteAPI(_ api: API) -> Bool {
         
-        if api == "/kcsapi/api_req_kousyou/destroyship" { return true }
-        
-        return false
+        return api.endpoint == .destroyShip
     }
     
     override func execute() {