Skip to content

Commit

Permalink
Add unknown default to SwiftLint command switch (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-cfuller authored Feb 5, 2024
1 parent 94fc8df commit 1897f09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Plugins/SwiftLintCommand/SwiftLintCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ internal struct SwiftLintCommand: CommandPlugin {
break
case .uncaughtSignal:
return Diagnostics.error("Uncaught Signal")
@unknown default:
return Diagnostics.error("Unexpected Termination Reason")
}
guard process.terminationStatus == EXIT_SUCCESS
else { return Diagnostics.error("Command Failed") }
Expand Down

0 comments on commit 1897f09

Please sign in to comment.