Skip to content

Commit 53d3d12

Browse files
John ButeJohn Bute
authored andcommitted
changed for added clarity
1 parent 32b6d36 commit 53d3d12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SWBCore/BuildParameters.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public struct BuildParameters: Hashable, SerializableCodable, Sendable {
191191
try container.encodeIfPresent(activeRunDestination, forKey: .activeRunDestination)
192192
try container.encodeIfPresent(activeArchitecture, forKey: .activeArchitecture)
193193
try container.encodeIfPresent(arena, forKey: .arena)
194-
try container.encode(normalizedOverrides(overrides), forKey: .overrides)
194+
try container.encode(filterOverrides(overrides), forKey: .overrides)
195195
try container.encode(commandLineOverrides, forKey: .commandLineOverrides)
196196
try container.encodeIfPresent(commandLineConfigOverridesPath, forKey: .commandLineConfigOverridesPath)
197197
try container.encode(commandLineConfigOverrides, forKey: .commandLineConfigOverrides)
@@ -228,7 +228,7 @@ public struct BuildParameters: Hashable, SerializableCodable, Sendable {
228228
hasher.combine(activeRunDestination)
229229
hasher.combine(activeArchitecture)
230230
hasher.combine(arena)
231-
hasher.combine(normalizedOverrides(overrides))
231+
hasher.combine(filterOverrides(overrides))
232232
hasher.combine(commandLineOverrides)
233233
hasher.combine(commandLineConfigOverridesPath)
234234
hasher.combine(commandLineConfigOverrides)
@@ -238,7 +238,7 @@ public struct BuildParameters: Hashable, SerializableCodable, Sendable {
238238
return hasher.finalize()
239239
}
240240

241-
private func normalizedOverrides(_ overrides: [String: String]) -> [String: String] {
241+
private func filterOverrides(_ overrides: [String: String]) -> [String: String] {
242242
overrides.mapValues { value in
243243
// Remove -v flag from the value to avoid rebuild
244244
value.split(separator: " ")

0 commit comments

Comments
 (0)