Skip to content

Commit

Permalink
fix node type and message
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshshanmugam committed Nov 1, 2024
1 parent e037040 commit 87d34bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"@types/babel__code-frame": "^7.0.3",
"@types/jest": "^28.1.8",
"@types/micromatch": "^4.0.9",
"@types/node": "~18.19.63",
"@types/node": "^18.19.63",
"@types/semver": "^7",
"@types/stack-utils": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^5.38.0",
Expand Down
4 changes: 1 addition & 3 deletions src/push/monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ export async function createLightweightMonitors(
const bufferContent = await readFile(file);
const isUtf8 = NodeBuffer.isUtf8(bufferContent);
if (!isUtf8) {
warn(
`file ${file} is not encoded in utf-8. utf-8 encoding is expected. Monitor configurations in this file may be ignored.`
);
warn(`${file} is not UTF-8 encoded. Monitors might be skipped.`);
}
const content = bufferContent.toString('utf-8');
const lineCounter = new LineCounter();
Expand Down

0 comments on commit 87d34bc

Please sign in to comment.