File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -113,13 +113,10 @@ class PBXVariantGroupGenerator: TargetSourceFilterable {
113
113
let pbxVariantGroupInfo = variantGroupInfoList
114
114
. filter { $0. targetName == targetName }
115
115
. first {
116
- let existsAlwaysStoredBaseFile : Bool = {
117
- var containExtensionList : [ Bool ] = [ ]
118
- alwaysStoredBaseExtensions. forEach { alwaysStoredBaseExtension in
119
- containExtensionList. append ( localizedChildPath. lastComponent. contains ( alwaysStoredBaseExtension) )
120
- }
121
- return containExtensionList. filter { $0 } . count > 0
122
- } ( )
116
+ let existsAlwaysStoredBaseFile = alwaysStoredBaseExtensions
117
+ . reduce ( into: [ Bool] ( ) ) { $0. append ( localizedChildPath. lastComponent. contains ( $1) ) }
118
+ . filter { $0 }
119
+ . count > 0
123
120
124
121
if existsAlwaysStoredBaseFile {
125
122
return $0. path. lastComponentWithoutExtension == localizedChildPath. lastComponentWithoutExtension
You can’t perform that action at this time.
0 commit comments