diff --git a/pkg/tools/tools.go b/pkg/tools/tools.go index 364b4f673d..31bfb15de5 100644 --- a/pkg/tools/tools.go +++ b/pkg/tools/tools.go @@ -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 }