Skip to content

Commit

Permalink
Fix report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
grantcox committed May 17, 2024
1 parent 32ffaed commit 610aea5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ function linter(key, options, compilation) {
return;
}

const content = outputReport.formatter;
(await loadFormatter(stylelint, outputReport.formatter))(
results,
returnValue,
);
formatter(results, returnValue);
const content = outputReport.formatter
? (await loadFormatter(stylelint, outputReport.formatter))(
results,
returnValue,
)
: formatter(results, returnValue);

let { filePath } = outputReport;
if (!isAbsolute(filePath)) {
Expand Down

0 comments on commit 610aea5

Please sign in to comment.