Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 27, 2024
1 parent bef638b commit 622b5eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/data/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ func (r *backupRepo) createPanel(to string) error {
if err != nil {
return err
}
defer io.Remove(temp)

if err = io.Cp(filepath.Join(app.Root, "panel"), temp); err != nil {
return err
Expand All @@ -361,7 +360,8 @@ func (r *backupRepo) createPanel(to string) error {
fmt.Printf("|-备份耗时:%s\n", time.Since(start).String())
fmt.Printf("|-已备份至文件:%s\n", filepath.Base(backup))
}
return nil

return io.Remove(temp)
}

// restoreWebsite 恢复网站备份
Expand Down

0 comments on commit 622b5eb

Please sign in to comment.