From 755a50044cd2eefef3d365cc42c76a6ed4715afe Mon Sep 17 00:00:00 2001 From: Pavel Vomacka Date: Wed, 6 Sep 2017 15:19:58 +0200 Subject: [PATCH] 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 --- install/ui/src/freeipa/ipa.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install/ui/src/freeipa/ipa.js b/install/ui/src/freeipa/ipa.js index 2538001c9..3920b8eb0 100644 --- a/install/ui/src/freeipa/ipa.js +++ b/install/ui/src/freeipa/ipa.js @@ -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) {