Skip to content

Commit 811f887

Browse files
committed
Fix typo
1 parent 7a937c7 commit 811f887

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Sources/Commands/Error.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ extension Error: CustomStringConvertible {
3737

3838
// The name has underscore because of SR-4015.
3939
func handle(error: Swift.Error) {
40-
4140
switch error {
4241
case Diagnostics.fatalError:
4342
break

Sources/Commands/SwiftRunTool.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

Sources/Commands/SwiftScriptTool.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ extension SwiftScriptTool {
332332

333333
/// Executes the executable at the specified path.
334334
fileprivate 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

0 commit comments

Comments
 (0)