OSDN Git Service
(root)
/
kcd
/
KCD.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dd687f
)
処理を単純化
author
masakih
<masakih@users.sourceforge.jp>
Mon, 13 Aug 2018 13:37:33 +0000
(22:37 +0900)
committer
masakih
<masakih@users.sourceforge.jp>
Mon, 13 Aug 2018 13:37:33 +0000
(22:37 +0900)
KCD/InformationTabViewController.swift
patch
|
blob
|
history
diff --git
a/KCD/InformationTabViewController.swift
b/KCD/InformationTabViewController.swift
index
b4332d3
..
201af57
100644
(file)
--- a/
KCD/InformationTabViewController.swift
+++ b/
KCD/InformationTabViewController.swift
@@
-54,10
+54,9
@@
func shipTypePredicte(for type: ShipTabType) -> NSPredicate? {
case .other:
let omitTypes = shipTypeCategories
- .lazy
- .enumerated()
- .filter { $0.offset != 0 && $0.offset != 7 }
- .flatMap { $0.element }
+ .dropLast()
+ .dropFirst()
+ .flatMap { $0 }
return .not(NSPredicate(#keyPath(Ship.master_ship.stype.id), valuesIn: omitTypes))