Skip to content

Commit 9749d48

Browse files
Trotttargos
authored andcommitted
benchmark: increase lint compliance
Remove two eslint-disable comments by replacing string concatenation with template literals. These changes are in catch blocks that are not part of the actual code being benchmarked. PR-URL: #23305 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 037063c commit 9749d48

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

benchmark/napi/function_args/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ let napi;
1212
try {
1313
v8 = require('./build/Release/binding');
1414
} catch (err) {
15-
// eslint-disable-next-line no-path-concat
16-
console.error(__filename + ': V8 Binding failed to load');
15+
console.error(`${__filename}: V8 Binding failed to load`);
1716
process.exit(0);
1817
}
1918

2019
try {
2120
napi = require('./build/Release/napi_binding');
2221
} catch (err) {
23-
// eslint-disable-next-line no-path-concat
24-
console.error(__filename + ': NAPI-Binding failed to load');
22+
console.error(`${__filename}: NAPI-Binding failed to load`);
2523
process.exit(0);
2624
}
2725

0 commit comments

Comments
 (0)