Merge "storaged: Fix bug in empty check"

This commit is contained in:
Treehugger Robot 2021-12-11 03:07:39 +00:00 committed by Gerrit Code Review
commit 46de7add81
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ void health_storage_info_t::report() {
vector<StorageInfo> halInfos;
auto ret = mHealth->getStorageInfo(&halInfos);
if (ret.isOk()) {
if (halInfos.size() == 0) {
if (halInfos.size() != 0) {
set_values_from_hal_storage_info(halInfos[0]);
publish();
return;