• R/O
  • HTTP
  • SSH
  • HTTPS

KCD: Commit

main code repository.


Commit MetaInfo

Revisionf0c4e5d444cef6fe41851ffc8d392c39ba3b508a (tree)
Time2018-08-13 22:37:33
Authormasakih <masakih@user...>
Commitermasakih

Log Message

処理を単純化

Change Summary

Incremental Difference

--- a/KCD/InformationTabViewController.swift
+++ b/KCD/InformationTabViewController.swift
@@ -54,10 +54,9 @@ func shipTypePredicte(for type: ShipTabType) -> NSPredicate? {
5454
5555 case .other:
5656 let omitTypes = shipTypeCategories
57- .lazy
58- .enumerated()
59- .filter { $0.offset != 0 && $0.offset != 7 }
60- .flatMap { $0.element }
57+ .dropLast()
58+ .dropFirst()
59+ .flatMap { $0 }
6160
6261 return .not(NSPredicate(#keyPath(Ship.master_ship.stype.id), valuesIn: omitTypes))
6362
Show on old repository browser