node_tests: Remove spurious assignments to `args`.

In both cases, `args` is a local variable that goes out of scope
immediately after the assignment. Since the variable isn't captured by
a closure either, the assignment has no effect.
This commit is contained in:
Max Schaefer 2017-08-23 07:32:52 +01:00 committed by Tim Abbott
parent bbe87231cd
commit 90510418a8
1 changed files with 2 additions and 2 deletions

View File

@ -566,7 +566,7 @@ with_overrides(function (override) {
var args = bot_stub.get_args('bot'); var args = bot_stub.get_args('bot');
assert_same(args.bot, event.bot); assert_same(args.bot, event.bot);
args = admin_stub.get_args('update_user_id', 'update_bot_data'); admin_stub.get_args('update_user_id', 'update_bot_data');
}); });
}); });
@ -579,7 +579,7 @@ with_overrides(function (override) {
var args = bot_stub.get_args('email'); var args = bot_stub.get_args('email');
assert_same(args.email, event.bot.email); assert_same(args.email, event.bot.email);
args = admin_stub.get_args('update_user_id', 'update_bot_data'); admin_stub.get_args('update_user_id', 'update_bot_data');
}); });
}); });