Skip to content

Commit

Permalink
Remove redundant logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Dec 24, 2022
1 parent 2a835c7 commit a891ea5
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,14 @@ async function run() {

const title = diffTitles[formattedDiff.type];
const level = diffLevels[formattedDiff.type] || "error";
console.log(
core[level](formattedDiff.message, {
title,
file: cmpDef.path,
startLine: formattedDiff.loc.start.line,
endLine: formattedDiff.loc.end.line,
startColumn: formattedDiff.loc.start.column,
endColumn: formattedDiff.loc.end.column,
})
);
core[level](formattedDiff.message, {
title,
file: cmpDef.path,
startLine: formattedDiff.loc.start.line,
endLine: formattedDiff.loc.end.line,
startColumn: formattedDiff.loc.start.column,
endColumn: formattedDiff.loc.end.column,
});

return formattedDiff;
});
Expand Down

0 comments on commit a891ea5

Please sign in to comment.