mirror of https://github.com/zulip/zulip.git
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:
parent
bbe87231cd
commit
90510418a8
|
@ -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');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue