File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ extension Error: CustomStringConvertible {
3737
3838// The name has underscore because of SR-4015.
3939func handle( error: Swift . Error ) {
40-
4140 switch error {
4241 case Diagnostics . fatalError:
4342 break
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ public struct SwiftRunTool: SwiftCommand {
236236
237237 /// Executes the executable at the specified path.
238238 private func run(
239- _ excutablePath : AbsolutePath ,
239+ _ executablePath : AbsolutePath ,
240240 originalWorkingDirectory: AbsolutePath ,
241241 arguments: [ String ] ) throws
242242 {
@@ -246,8 +246,8 @@ public struct SwiftRunTool: SwiftCommand {
246246 try ProcessEnv . chdir ( originalWorkingDirectory)
247247 }
248248
249- let pathRelativeToWorkingDirectory = excutablePath . relative ( to: originalWorkingDirectory)
250- try exec ( path: excutablePath . pathString, args: [ pathRelativeToWorkingDirectory. pathString] + arguments)
249+ let pathRelativeToWorkingDirectory = executablePath . relative ( to: originalWorkingDirectory)
250+ try exec ( path: executablePath . pathString, args: [ pathRelativeToWorkingDirectory. pathString] + arguments)
251251 }
252252
253253 /// Determines if a path points to a valid swift file.
Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ extension SwiftScriptTool {
332332
333333/// Executes the executable at the specified path.
334334fileprivate func run(
335- _ excutablePath : AbsolutePath ,
335+ _ executablePath : AbsolutePath ,
336336 originalWorkingDirectory: AbsolutePath ,
337337 arguments: [ String ] ) throws {
338338 // Make sure we are running from the original working directory.
@@ -341,8 +341,8 @@ fileprivate func run(
341341 try ProcessEnv . chdir ( originalWorkingDirectory)
342342 }
343343
344- let pathRelativeToWorkingDirectory = excutablePath . relative ( to: originalWorkingDirectory)
345- try exec ( path: excutablePath . pathString, args: [ pathRelativeToWorkingDirectory. pathString] + arguments)
344+ let pathRelativeToWorkingDirectory = executablePath . relative ( to: originalWorkingDirectory)
345+ try exec ( path: executablePath . pathString, args: [ pathRelativeToWorkingDirectory. pathString] + arguments)
346346}
347347
348348/// Logs all changed dependencies to a stream
You can’t perform that action at this time.
0 commit comments