Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Nov 13, 2023
1 parent 12563e0 commit 437b88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 437b88e

Please sign in to comment.