init to null

This commit is contained in:
Daan Hoogland 2020-04-07 09:23:40 +02:00
parent 0aa1190990
commit ae1dad5a1f
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ public class DefaultSnapshotStrategy extends SnapshotStrategyBase {
}
private Boolean deleteOnSecondaryIfNeeded(Long snapshotId) {
Boolean deletedOnSecondary = false;
Boolean deletedOnSecondary = null;
SnapshotInfo snapshotOnImage = snapshotDataFactory.getSnapshot(snapshotId, DataStoreRole.Image);
if (snapshotOnImage == null) {
s_logger.debug(String.format("Can't find snapshot [snapshot id: %d] on secondary storage", snapshotId));