Coverity - true branch can't be executed
The 'result' 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
7be585dbb2
commit
d94a2aa185
1 file changed
+2
-1
@@ -636,7 +636,8 @@ rpc.batch_command = function(spec) {
|
||||
|
||||
if (!result) {
|
||||
name = text.get('@i18n:errors.internal_error', 'Internal Error')+' '+xhr.status;
|
||||
message = result ? xhr.statusText : text.get('@i18n:errors.internal_error', 'Internal Error');
|
||||
message = xhr ? xhr.statusText :
|
||||
text.get('@i18n:errors.internal_error', 'Internal Error');
|
||||
|
||||
that.errors.add(command, name, message, text_status);
|
||||
|
||||
|
||||
Reference in new issue
Block a user