Skip to content

Commit

Permalink
Update Source/swiftlint/Helpers/LintOrAnalyzeCommand.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Danny Mösch <[email protected]>
  • Loading branch information
mildm8nnered and SimplyDanny committed May 4, 2024
1 parent 4bf7296 commit 13ebf0c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/swiftlint/Helpers/LintOrAnalyzeCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ struct LintOrAnalyzeCommand {
private static func lintOrAnalyze(_ options: LintOrAnalyzeOptions) async throws {
let builder = LintOrAnalyzeResultBuilder(options)
let files = try await collectViolations(builder: builder)
let baselineOutputPath = options.writeBaseline ?? builder.configuration.writeBaseline
if let baselineOutputPath {
if let baselineOutputPath = options.writeBaseline ?? builder.configuration.writeBaseline {
try Baseline(violations: builder.unfilteredViolations).write(toPath: baselineOutputPath)
}
try Signposts.record(name: "LintOrAnalyzeCommand.PostProcessViolations") {
Expand Down

0 comments on commit 13ebf0c

Please sign in to comment.