Skip to content

Commit

Permalink
Allow baseline read and write in same run
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed Jun 9, 2024
1 parent fc74a27 commit 9f6c2c0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Sources/Frontend/Commands/ScanCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ struct ScanCommand: FrontendCommand {
Logger().warn("The option '--external-encodable-protocols' is deprecated, use '--external-codable-protocols' instead.")
}

if baseline != nil, writeBaseline != nil {
throw PeripheryError.usageError("The options '--baseline' and '--write-baseline' cannot be used as the same time. First, save a baseline with '--write-baseline', then use it with '--baseline'.")
}

let configuration = Configuration.shared
configuration.guidedSetup = setup
configuration.apply(\.$workspace, workspace)
Expand Down

0 comments on commit 9f6c2c0

Please sign in to comment.