Check for non zero count value

This commit is contained in:
Sathish Ambley 2019-06-19 00:03:02 -07:00 committed by Michael Vines
parent 46bb79df29
commit 2562e48b9d
1 changed files with 3 additions and 1 deletions

View File

@ -243,7 +243,9 @@ impl AccountStorageEntry {
status = AccountStorageStatus::Available; status = AccountStorageStatus::Available;
} }
*count_and_status = (count - 1, status); if count > 0 {
*count_and_status = (count - 1, status);
}
count_and_status.0 count_and_status.0
} }
} }