From 9f6c2c0821906b8b7f58b85a42bec8d254a9d222 Mon Sep 17 00:00:00 2001 From: Ian Leitch Date: Sun, 9 Jun 2024 11:18:58 +0200 Subject: [PATCH] Allow baseline read and write in same run --- Sources/Frontend/Commands/ScanCommand.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Sources/Frontend/Commands/ScanCommand.swift b/Sources/Frontend/Commands/ScanCommand.swift index 440f46fef..b009df607 100644 --- a/Sources/Frontend/Commands/ScanCommand.swift +++ b/Sources/Frontend/Commands/ScanCommand.swift @@ -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)