diff --git a/server/archiver.go b/server/archiver.go index f757bb1a..d321c421 100644 --- a/server/archiver.go +++ b/server/archiver.go @@ -99,7 +99,7 @@ func (a *Archiver) Archive() error { // DeleteIfExists deletes the archive if it exists. func (a *Archiver) DeleteIfExists() error { stat, err := a.Stat() - if err != nil && !os.IsNotExist(err) { + if err != nil && !errors.Is(err, os.ErrNotExist) { return err }