WebUI - Coverity: fix identical branches of if statement

Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
Pavel Vomacka 2017-04-13 13:05:44 +02:00 committed by Martin Basti
parent 5ba7957450
commit 01516e58c8

View File

@ -379,11 +379,7 @@ vault.public_key_widget = function(spec) {
status = String.fromCharCode(decimal_check_i);
}
} else {
if (!value || value === '') {
status = text.get('@i18n:objects.publickey.status_new_ns');
} else {
status = text.get('@i18n:objects.publickey.status_new_ns');
}
}
return status;