From 9749d487290ac222915e896f4f6ceb2ad19d1eef Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 6 Oct 2018 17:08:02 -0700 Subject: [PATCH] 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 Reviewed-By: Vse Mozhet Byt Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat --- benchmark/napi/function_args/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/benchmark/napi/function_args/index.js b/benchmark/napi/function_args/index.js index c8f281a3429fde..4beab531c17301 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); }