storaged: Fix bug in empty check
Test: TreeHugger Bug: 208543110 Change-Id: I89610a1e9e8f6bab57bab593132365f88d4adc76
This commit is contained in:
parent
fc5692852e
commit
00c5e4c9ea
|
@ -328,7 +328,7 @@ void health_storage_info_t::report() {
|
||||||
vector<StorageInfo> halInfos;
|
vector<StorageInfo> halInfos;
|
||||||
auto ret = mHealth->getStorageInfo(&halInfos);
|
auto ret = mHealth->getStorageInfo(&halInfos);
|
||||||
if (ret.isOk()) {
|
if (ret.isOk()) {
|
||||||
if (halInfos.size() == 0) {
|
if (halInfos.size() != 0) {
|
||||||
set_values_from_hal_storage_info(halInfos[0]);
|
set_values_from_hal_storage_info(halInfos[0]);
|
||||||
publish();
|
publish();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue