Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Commit 5171e0c

Browse files
committed
Filter out duplicates when normalizing SettingValue
1 parent 88d537a commit 5171e0c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Sources/XcodeGraph/Models/Settings.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@ public enum SettingValue: ExpressibleByStringInterpolation, ExpressibleByStringL
2222
case let .array(currentValue):
2323
if currentValue.count == 1 {
2424
return .string(currentValue[0])
25+
} else {
26+
return .array(
27+
Array(
28+
Set(
29+
currentValue
30+
)
31+
)
32+
)
2533
}
26-
return self
2734
case .string:
2835
return self
2936
}

0 commit comments

Comments
 (0)