Skip to content

Commit 65c654e

Browse files
committed
Go: Do not use a named return variable in buildWithoutCustomCommands
1 parent 4d5f05a commit 65c654e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

go/extractor/cli/go-autobuilder/go-autobuilder.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ func setGopath(root string) {
322322

323323
// Try to build the project with a build script. If that fails, return a boolean indicating
324324
// that we should install dependencies in the normal way.
325-
func buildWithoutCustomCommands(modMode project.ModMode) (shouldInstallDependencies bool) {
326-
shouldInstallDependencies = false
325+
func buildWithoutCustomCommands(modMode project.ModMode) bool {
326+
shouldInstallDependencies := false
327327
// try to run a build script
328328
scriptSucceeded, scriptsExecuted := autobuilder.Autobuild()
329329
scriptCount := len(scriptsExecuted)
@@ -343,7 +343,7 @@ func buildWithoutCustomCommands(modMode project.ModMode) (shouldInstallDependenc
343343

344344
shouldInstallDependencies = true
345345
}
346-
return
346+
return shouldInstallDependencies
347347
}
348348

349349
// Build the project with custom commands.

0 commit comments

Comments
 (0)