Skip to content

Commit 410f644

Browse files
authored
Delete unnecessary processes. (yonaskolb#927) (yonaskolb#928)
* Delete unnecessary processes. * move value assignment up above
1 parent d4c9f62 commit 410f644

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Sources/ProjectSpec/TargetSource.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,13 @@ extension TargetSource: JSONEncodable {
122122
"buildPhase": buildPhase?.toJSONValue(),
123123
"createIntermediateGroups": createIntermediateGroups,
124124
"resourceTags": resourceTags,
125+
"path": path,
125126
]
126127

127128
if optional != TargetSource.optionalDefault {
128129
dict["optional"] = optional
129130
}
130131

131-
if dict.count == 0 {
132-
return path
133-
}
134-
135-
dict["path"] = path
136-
137132
return dict
138133
}
139134
}

0 commit comments

Comments
 (0)