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

fix: lint

This commit is contained in:
耗子
2023-11-14 02:27:28 +08:00
parent f7d65fc22e
commit 12563e0cd2

View File

@@ -440,7 +440,10 @@ func UpdatePanel(panelInfo PanelInfo) error {
if check != panelInfo.DownloadName+": OK" || err != nil {
return errors.New("下载文件校验失败")
}
Remove("/www/panel/" + panelInfo.Checksums)
if err := Remove("/www/panel/" + panelInfo.Checksums); err != nil {
color.Redln("清理临时文件失败")
return err
}
color.Greenln("文件校验完成")
color.Greenln("更新新版本...")