We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcfdc67 commit 91d9dc7Copy full SHA for 91d9dc7
Sources/libhostmgr/BuildkiteScriptBuilder.swift
@@ -35,11 +35,9 @@ public struct BuildkiteScriptBuilder {
35
prefixedBy prefix: String,
36
from environment: [String: String] = ProcessInfo.processInfo.environment
37
) {
38
- environment
39
- .filter { $0.key.starts(with: prefix) }
40
- .forEach { key, value in
41
- environmentVariables[key] = Value(wrapping: value)
42
- }
+ for (key, value) in environment where key.starts(with: prefix) {
+ environmentVariables[key] = Value(wrapping: value)
+ }
43
}
44
45
/// Add a line to the build script.
0 commit comments