Skip to content

Commit 3a73dcb

Browse files
committed
Disable linting warnings of console logging
1 parent fa55e9a commit 3a73dcb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/utils/lz4.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function tryLoadLZ4Module(): LZ4Module | undefined {
77
return require('lz4'); // eslint-disable-line global-require
88
} catch (err) {
99
if (!(err instanceof Error) || !('code' in err)) {
10+
// eslint-disable-next-line no-console
1011
console.warn('Unexpected error loading LZ4 module: Invalid error object', err);
1112
return undefined;
1213
}
@@ -16,11 +17,13 @@ function tryLoadLZ4Module(): LZ4Module | undefined {
1617
}
1718

1819
if (err.code === 'ERR_DLOPEN_FAILED') {
20+
// eslint-disable-next-line no-console
1921
console.warn('LZ4 native module failed to load: Architecture or version mismatch', err);
2022
return undefined;
2123
}
2224

2325
// If it's not a known error, return undefined
26+
// eslint-disable-next-line no-console
2427
console.warn('Unknown error loading LZ4 module: Unhandled error code', err);
2528
return undefined;
2629
}

0 commit comments

Comments
 (0)