Fix lint errors

This commit is contained in:
Brandon Keepers 2017-06-11 20:01:43 -07:00
parent 12fc819f6b
commit ff5a7c80a4
No known key found for this signature in database
GPG Key ID: F9533396D5FACBF6
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}