This commit is contained in:
WithoutPants 2023-05-04 14:23:23 +10:00
parent b1c61d2846
commit 39ebd92e60
1 changed files with 2 additions and 2 deletions

View File

@ -26,12 +26,12 @@ func (t *GenerateCoverTask) Start(ctx context.Context) {
var required bool
if err := t.txnManager.WithReadTxn(ctx, func(ctx context.Context) error {
required = t.required(ctx)
return t.Scene.LoadPrimaryFile(ctx, t.txnManager.File)
}); err != nil {
logger.Error(err)
}
if !required {
return
}