WebUI: remove unused parameter from get_whoami_command

The batch param is not used anywhere therefore we can remove it.

https://pagure.io/freeipa/issue/7143

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Pavel Vomacka 2017-09-06 15:19:58 +02:00 committed by Stanislav Laznicka
parent a077c705fe
commit 755a50044c

View File

@ -191,7 +191,7 @@ var IPA = function () {
}
}));
batch.add_command(that.get_whoami_command(true));
batch.add_command(that.get_whoami_command());
batch.add_command(rpc.command({
method: 'env',
@ -259,10 +259,8 @@ var IPA = function () {
/**
* Prepares `user-find --whoami` command
* @protected
* @param {boolean} batch - Specifies if it will be used as single command or
* in a batch.
*/
that.get_whoami_command = function(batch) {
that.get_whoami_command = function() {
return rpc.command({
method: 'whoami',
on_success: function(data, text_status, xhr) {