Skip to content

Commit bfb9b27

Browse files
committed
Remove unnecessary environment variable operations from execute(_:in:input:)
Those environment variables are not required on SwiftLint. Sorry, I forgot to remove them on copying the `execute(_:in:input:)` from my other project. :bowing_man:
1 parent 2638827 commit bfb9b27

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Tests/SwiftLintFrameworkTests/IntegrationTests.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,6 @@ private func execute(_ args: [String],
171171
if let directory = directory {
172172
process.currentDirectoryPath = directory.path
173173
}
174-
var environment = ProcessInfo.processInfo.environment
175-
environment["DISCORD_TOKEN"] = nil
176-
environment["DYNO"] = nil
177-
environment["PORT"] = nil
178-
environment["TIMEOUT"] = nil
179-
process.environment = environment
180174
let stdoutPipe = Pipe(), stderrPipe = Pipe()
181175
process.standardOutput = stdoutPipe
182176
process.standardError = stderrPipe

0 commit comments

Comments
 (0)