• R/O
  • HTTP
  • SSH
  • HTTPS

KCD: Commit

main code repository.


Commit MetaInfo

Revision96aa7941741c81031e31e3f9fb4069b2e953b789 (tree)
Time2018-08-05 14:31:34
Authormasakih <masakih@user...>
Commitermasakih

Log Message

処理を効率化

Change Summary

Incremental Difference

--- a/KCD/CommandRegister.swift
+++ b/KCD/CommandRegister.swift
@@ -73,7 +73,7 @@ final class CommandRegister {
7373 return IgnoreCommand(apiResponse: response)
7474 }
7575
76- if let c = registeredClasses.lazy.filter({ $0.canExecuteAPI(response.api) }).first {
76+ if let c = registeredClasses.first(where: { $0.canExecuteAPI(response.api) }) {
7777
7878 return c.init(apiResponse: response)
7979 }
Show on old repository browser