Skip to content

Commit

Permalink
Add unknown default to SwiftLint command switch
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-cfuller committed Feb 4, 2024
1 parent 033beaf commit 2588226
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 2588226

Please sign in to comment.