diff options
author | Rich Trott <rtrott@gmail.com> | 2018-10-06 17:08:02 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-10-07 16:58:45 -0700 |
commit | 1d96d7da7331619ee99066451f6bcf1b5a7f3953 (patch) | |
tree | b0b8822a8d24c5ae61de0024ffb92b8947da9acf /benchmark/napi | |
parent | b155358235df5b4158607787dc18d82e05ceea02 (diff) | |
download | node-new-1d96d7da7331619ee99066451f6bcf1b5a7f3953.tar.gz |
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: https://github.com/nodejs/node/pull/23305
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'benchmark/napi')
-rw-r--r-- | benchmark/napi/function_args/index.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/benchmark/napi/function_args/index.js b/benchmark/napi/function_args/index.js index c8f281a342..4beab531c1 100644 --- a/benchmark/napi/function_args/index.js +++ b/benchmark/napi/function_args/index.js @@ -12,16 +12,14 @@ let napi; try { v8 = require('./build/Release/binding'); } catch (err) { - // eslint-disable-next-line no-path-concat - console.error(__filename + ': V8 Binding failed to load'); + console.error(`${__filename}: V8 Binding failed to load`); process.exit(0); } try { napi = require('./build/Release/napi_binding'); } catch (err) { - // eslint-disable-next-line no-path-concat - console.error(__filename + ': NAPI-Binding failed to load'); + console.error(`${__filename}: NAPI-Binding failed to load`); process.exit(0); } |