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>
This commit is contained in:
1 parent
ed74e14ab4
commit
7be585dbb2
1 file changed
+2
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user