From 5e38e1391d8c4d6a4c6022b44acff69374930f67 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Wed, 13 Dec 2023 21:54:11 +1100 Subject: [PATCH] Fix format and remove redundant code block in build.go This commit adjusts the formatting in a line of code that handles a missing binary error message. Additionally, it removes a redundant closing brace that was incorrectly situated in the code, thereby cleaning up the code structure. --- v2/pkg/commands/build/build.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/v2/pkg/commands/build/build.go b/v2/pkg/commands/build/build.go index 1e071c78dfa..d061f2ce089 100644 --- a/v2/pkg/commands/build/build.go +++ b/v2/pkg/commands/build/build.go @@ -324,7 +324,7 @@ func execBuildApplication(builder Builder, options *Options) (string, error) { if runtime.GOOS == "darwin" { // Remove quarantine attribute if _, err := os.Stat(options.CompiledBinary); os.IsNotExist(err) { - return "", fmt.Errorf("compiled binary does not exist at path: %s", options.CompiledBinary) + return "", fmt.Errorf("compiled binary does not exist at path: %s", options.CompiledBinary) } stdout, stderr, err := shell.RunCommand(options.BinDirectory, "xattr", "-rc", options.CompiledBinary) if err != nil { @@ -333,7 +333,6 @@ func execBuildApplication(builder Builder, options *Options) (string, error) { if options.Verbosity == VERBOSE && stdout != "" { pterm.Info.Println(stdout) } - } } pterm.Println("Done.")