From 71ecaa9e4b08aa144dabd5bcb4eb13de8a0e30e2 Mon Sep 17 00:00:00 2001 From: bitxeno <137328844+bitxeno@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:29:14 +0800 Subject: [PATCH] ci: fix linter error --- internal/task/task.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/task/task.go b/internal/task/task.go index 2bbb3b1..49b542a 100644 --- a/internal/task/task.go +++ b/internal/task/task.go @@ -158,7 +158,7 @@ func (t *Task) tryInstallApp(v model.InstalledApp) { func (t *Task) runInternal(v model.InstalledApp) error { if v.Account == "" || v.Password == "" || v.UDID == "" { log.Info("account or password or UDID is empty") - return fmt.Errorf("account or password or UDID is empty") + return fmt.Errorf("%s", "account or password or UDID is empty") } installMgr := manager.NewInstallManager() @@ -172,7 +172,7 @@ func (t *Task) runInternal(v model.InstalledApp) error { if strings.Contains(installMgr.OutputLog(), "Installation Succeeded") { return nil } else { - return fmt.Errorf(installMgr.ErrorLog()) + return fmt.Errorf("%s", installMgr.ErrorLog()) } }