cache: handle nil result from flightcontrol

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
v0.8
Tonis Tiigi 2020-11-20 20:35:26 -08:00
parent 0caddb1c72
commit 54908ec03f
1 changed files with 3 additions and 0 deletions

3
cache/refs.go vendored
View File

@ -454,6 +454,9 @@ func (sr *immutableRef) prepareRemoteSnapshots(ctx context.Context, dhs DescHand
// This layer cannot be prepared without unlazying.
return false, nil
})
if err != nil {
return false, err
}
return ok.(bool), err
}