Skip to content

Commit

Permalink
Fix format and remove redundant code block in build.go
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
leaanthony committed Dec 13, 2023
1 parent 23cac63 commit 5e38e13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions v2/pkg/commands/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -333,7 +333,6 @@ func execBuildApplication(builder Builder, options *Options) (string, error) {
if options.Verbosity == VERBOSE && stdout != "" {
pterm.Info.Println(stdout)
}
}
}

pterm.Println("Done.")
Expand Down

0 comments on commit 5e38e13

Please sign in to comment.