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

fix: lint

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

View File

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