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:
Pavel Vomacka authored and Petr Vobornik committed 2016-11-10 18:58:38 +01:00
1 parent 7be585dbb2
commit d94a2aa185
1 file changed
+2 -1
+2 -1
View File
@@ -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);