From 81c28e30062a26eb479d50d236dd963640b33a25 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Mon, 18 Aug 2025 20:45:47 +0200 Subject: [PATCH] test: appease the tester --- cli/internal/deploy.go | 6 +++--- pkg/upstream/stack/remove.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/internal/deploy.go b/cli/internal/deploy.go index 481e7a63fc..d687c49fe6 100644 --- a/cli/internal/deploy.go +++ b/cli/internal/deploy.go @@ -146,7 +146,7 @@ func getDeployType(currentVersion, newVersion string) string { func PostCmds(cl *dockerClient.Client, app appPkg.App, commands string) error { if _, err := os.Stat(app.Recipe.AbraShPath); err != nil { if os.IsNotExist(err) { - return fmt.Errorf(fmt.Sprintf("%s does not exist for %s?", app.Recipe.AbraShPath, app.Name)) + return fmt.Errorf("%s does not exist for %s?", app.Recipe.AbraShPath, app.Name) } return err } @@ -154,7 +154,7 @@ func PostCmds(cl *dockerClient.Client, app appPkg.App, commands string) error { for _, command := range strings.Split(commands, "|") { commandParts := strings.Split(command, " ") if len(commandParts) < 2 { - return fmt.Errorf(fmt.Sprintf("not enough arguments: %s", command)) + return fmt.Errorf("not enough arguments: %s", command) } targetServiceName := commandParts[0] cmdName := commandParts[1] @@ -181,7 +181,7 @@ func PostCmds(cl *dockerClient.Client, app appPkg.App, commands string) error { } if !matchingServiceName { - return fmt.Errorf(fmt.Sprintf("no service %s for %s?", targetServiceName, app.Name)) + return fmt.Errorf("no service %s for %s?", targetServiceName, app.Name) } log.Debugf("running command %s %s within the context of %s_%s", cmdName, parsedCmdArgs, app.StackName(), targetServiceName) diff --git a/pkg/upstream/stack/remove.go b/pkg/upstream/stack/remove.go index a6f5d1ef18..a2fde29d25 100644 --- a/pkg/upstream/stack/remove.go +++ b/pkg/upstream/stack/remove.go @@ -88,7 +88,7 @@ func RunRemove(ctx context.Context, client *apiclient.Client, opts Remove) error } if len(errs) > 0 { - errCh <- errors.Errorf(strings.Join(errs, "\n")) + errCh <- errors.New(strings.Join(errs, "\n")) return }