From ff5a7c80a429e89fa9c8294d3998363a4c2599fb Mon Sep 17 00:00:00 2001 From: Brandon Keepers Date: Sun, 11 Jun 2017 20:01:43 -0700 Subject: [PATCH] Fix lint errors --- lib/robot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/robot.js b/lib/robot.js index 9d2543b5..6953820a 100644 --- a/lib/robot.js +++ b/lib/robot.js @@ -45,8 +45,8 @@ class Robot { * }); */ on(event, callback) { - if(callback.length === 2) { - const caller = (new Error).stack.split("\n")[2]; + if (callback.length === 2) { + const caller = (new Error()).stack.split('\n')[2]; console.warn('DEPRECATED: Event callbacks now only take a single `context` argument.', caller); }