Skip to content

Commit 610aea5

Browse files
committed
Fix report generation
1 parent 32ffaed commit 610aea5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/linter.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ function linter(key, options, compilation) {
152152
return;
153153
}
154154

155-
const content = outputReport.formatter;
156-
(await loadFormatter(stylelint, outputReport.formatter))(
157-
results,
158-
returnValue,
159-
);
160-
formatter(results, returnValue);
155+
const content = outputReport.formatter
156+
? (await loadFormatter(stylelint, outputReport.formatter))(
157+
results,
158+
returnValue,
159+
)
160+
: formatter(results, returnValue);
161161

162162
let { filePath } = outputReport;
163163
if (!isAbsolute(filePath)) {

0 commit comments

Comments
 (0)