Skip to content

Commit

Permalink
fix: panic in archivingcache shutdown hook
Browse files Browse the repository at this point in the history
This commit fixes a bug that causes the shutdown hook for the
archivingcache plugin to panic. The bug was introduced in commit
c20f64f
  • Loading branch information
maeb committed Feb 14, 2024
1 parent a94902c commit 999495f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/archivingcache/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (a *ArchivingCache) OnShutdown() (err error) {
if a.logWriter != nil {
_ = a.contentWriter.Close()
}
if a.logWriter == nil {
if a.logWriter != nil {
_ = a.logWriter.Close()
}
return
Expand Down

0 comments on commit 999495f

Please sign in to comment.