Skip to content

Commit f91d771

Browse files
authored
Fix another nil panic (#6410)
Signed-off-by: Changxin Miao <[email protected]>
1 parent ae43d3d commit f91d771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/meta/base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2582,8 +2582,8 @@ func (m *baseMeta) cleanupTrash(ctx Context) {
25822582
} else if ok {
25832583
if cCtx != nil {
25842584
cCtx.Cancel()
2585-
cCtx = WrapWithTimeout(ctx, 50*time.Minute)
25862585
}
2586+
cCtx = WrapWithTimeout(ctx, 50*time.Minute)
25872587
days := m.getFormat().TrashDays
25882588
go m.doCleanupTrash(cCtx, days, false)
25892589
go m.cleanupDelayedSlices(cCtx, days)

0 commit comments

Comments
 (0)