Skip to content

Commit ca9e831

Browse files
committed
Handle updated Formatly result types
1 parent 4942cca commit ca9e831

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/knip/src/IssueFixer.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const fix = async (issues: Issues, counters: Counters, options: MainOptio
2525

2626
if (options.isFormat) {
2727
const report = await formatly(Array.from(touchedFiles));
28-
if (report.ran && report.result && (report.result.runner === 'virtual' || report.result.code === 0)) {
28+
if (report.ran && report.result.runner !== 'dry-run' && report.result.code === 0) {
2929
debugLogArray('*', `Formatted files using ${report.formatter.name} (${report.formatter.runner})`, touchedFiles);
3030
} else {
3131
debugLogObject('*', 'Formatting files failed', report);

0 commit comments

Comments
 (0)