Skip to content

Commit

Permalink
fix: golint error
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Apr 17, 2024
1 parent 4a92b69 commit d6363dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/asset_platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func npmRunBuild(path string, buildCmd string, buildEnvVariables []string) error
return nil
}

func getInstallCommand(root string, isProductionMode bool, npmPackage NpmPackage) *exec.Cmd {
func getInstallCommand(isProductionMode bool, npmPackage NpmPackage) *exec.Cmd {
// Bun can migrate on the fly the package-lock.json to a bun.lockdb and is much faster than NPM
if os.Getenv("SHOPWARE_CLI_FORCE_BUN") == "1" {
if _, err := exec.LookPath("bun"); err == nil && canRunBunOnPackage(npmPackage) && !isProductionMode {
Expand All @@ -357,7 +357,7 @@ func InstallNPMDependencies(path string, packageJsonData NpmPackage, additionalP
return nil
}

installCmd := getInstallCommand(path, isProductionMode, packageJsonData)
installCmd := getInstallCommand(isProductionMode, packageJsonData)
installCmd.Args = append(installCmd.Args, additionalParams...)
installCmd.Dir = path
installCmd.Stdout = os.Stdout
Expand Down

0 comments on commit d6363dd

Please sign in to comment.