summaryrefslogtreecommitdiffstats
path: root/install/ui/src
diff options
context:
space:
mode:
authorPavel Vomacka <pvomacka@redhat.com>2016-07-25 17:44:56 +0200
committerPetr Vobornik <pvoborni@redhat.com>2016-11-10 18:58:38 +0100
commit7be585dbb206ed12b25d09bfb2f5452ee9c125ae (patch)
tree7b054e1042b6c6cede0421a90e9784739717dac4 /install/ui/src
parented74e14ab4a17c83cf6782e4b6fd41a2ce79594d (diff)
downloadfreeipa-7be585dbb206ed12b25d09bfb2f5452ee9c125ae.tar.gz
freeipa-7be585dbb206ed12b25d09bfb2f5452ee9c125ae.tar.xz
freeipa-7be585dbb206ed12b25d09bfb2f5452ee9c125ae.zip
Coverity - true branch can't be executed
The 'data' variable is always false because of previous condition. Therefore there is direct assignment. Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
Diffstat (limited to 'install/ui/src')
-rw-r--r--install/ui/src/freeipa/rpc.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/rpc.js b/install/ui/src/freeipa/rpc.js
index 65bed7766..2eed6cc87 100644
--- a/install/ui/src/freeipa/rpc.js
+++ b/install/ui/src/freeipa/rpc.js
@@ -379,7 +379,8 @@ rpc.command = function(spec) {
error_handler.call(this, xhr, text_status, /* error_thrown */ {
name: text.get('@i18n:errors.http_error', 'HTTP Error')+' '+xhr.status,
url: this.url,
- message: data ? xhr.statusText : text.get('@i18n:errors.no_response', 'No response')
+ message: xhr ? xhr.statusText :
+ text.get('@i18n:errors.no_response', 'No response')
});
} else if (IPA.version && data.version && IPA.version !== data.version) {