From 6072332e1a223fb25c9e5ea3cd49b1d2e64a19fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 12 Oct 2024 18:44:16 +0800 Subject: [PATCH] fix: lint --- internal/apps/toolbox/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/apps/toolbox/service.go b/internal/apps/toolbox/service.go index 505c6bc0..d2148471 100644 --- a/internal/apps/toolbox/service.go +++ b/internal/apps/toolbox/service.go @@ -138,7 +138,7 @@ func (s *Service) UpdateSWAP(w http.ResponseWriter, r *http.Request) { return } if cast.ToInt64(free)*1024 < req.Size*1024*1024 { - service.Error(w, http.StatusUnprocessableEntity, "磁盘空间不足,当前剩余 "+str.FormatBytes(cast.ToFloat64(free))) + service.Error(w, http.StatusUnprocessableEntity, "磁盘空间不足,当前剩余%s", str.FormatBytes(cast.ToFloat64(free))) return }