forked from mirrors/probot
Fix lint errors
This commit is contained in:
parent
12fc819f6b
commit
ff5a7c80a4
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue