diff --git a/code/cli/munki/makecatalogs/makecatalogs.swift b/code/cli/munki/makecatalogs/makecatalogs.swift index 33996968..ff901916 100644 --- a/code/cli/munki/makecatalogs/makecatalogs.swift +++ b/code/cli/munki/makecatalogs/makecatalogs.swift @@ -120,7 +120,7 @@ struct MakeCatalogs: AsyncParsableCommand { throw ExitCode.failure } } catch { - if let e = error as? ExitCode { + if error is ExitCode { throw error } printStderr("Unexpected error: \(error)")