Skip to content

Commit fb6c9ab

Browse files
committed
Only write results file when there are results
1 parent 71747c3 commit fb6c9ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Frontend/Commands/ScanCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ struct ScanCommand: FrontendCommand {
255255

256256
logger.info(output, canQuiet: false)
257257

258-
if let resultsPath = configuration.writeResults {
258+
if !filteredResults.isEmpty, let resultsPath = configuration.writeResults {
259259
var output = output
260260

261261
if outputFormat.supportsColoredOutput {

0 commit comments

Comments
 (0)