2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 10:17:17 +08:00

fix: lint

This commit is contained in:
耗子
2024-10-28 03:36:35 +08:00
parent 343d451752
commit 0c31641ebd

View File

@@ -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
@@ -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 恢复网站备份