Check for non zero count value
This commit is contained in:
parent
46bb79df29
commit
2562e48b9d
|
@ -243,7 +243,9 @@ impl AccountStorageEntry {
|
|||
status = AccountStorageStatus::Available;
|
||||
}
|
||||
|
||||
*count_and_status = (count - 1, status);
|
||||
if count > 0 {
|
||||
*count_and_status = (count - 1, status);
|
||||
}
|
||||
count_and_status.0
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue