Merge "storaged: Fix bug in empty check" am: 46de7add81

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1915078

Change-Id: I14b3bfa86cffc6aa2b33fe48196e4089de1e14a4
This commit is contained in:
Treehugger Robot 2021-12-11 03:21:51 +00:00 committed by Automerger Merge Worker
commit 2ae516ef50
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;