diff --git a/app/nodejs/nodejs.go b/app/nodejs/nodejs.go index c68729b..753a258 100644 --- a/app/nodejs/nodejs.go +++ b/app/nodejs/nodejs.go @@ -78,7 +78,7 @@ func GetDistURL(version string, arch string) (string, string, error) { if util.URLValid(msiFullURL) { return msiFullURL, filepath.Base(msiFullURL), nil } - return "", "", fmt.Errorf("Version %s (%s) does not exist...", version, arch) + return "", "", fmt.Errorf("Version %s (%s) does not exist", version, arch) } // ExtractDist extracts the node.js distribution binary msi or zip file in the extract folder diff --git a/main.go b/main.go index 742cc9a..fba3cdb 100644 --- a/main.go +++ b/main.go @@ -119,7 +119,7 @@ func install(args ...string) error { // check dist fmt.Println() util.Print(fmt.Sprintf("Checking Node.js version '%s'... ", nodejsVersion)) - distUrl, distFilename, err := nodejs.GetDistURL(nodejsVersion, nodejsArch) + distURL, distFilename, err := nodejs.GetDistURL(nodejsVersion, nodejsArch) if err != nil { util.PrintError(err) return nil @@ -127,9 +127,9 @@ func install(args ...string) error { util.PrintOk() // download dist - util.Print(fmt.Sprintf("Downloading %s...", distUrl)) + util.Print(fmt.Sprintf("Downloading %s...", distURL)) distPath := fs.Join(pathu.TmpPath, distFilename) - if err := util.DownloadFile(pathu.TmpPath, distUrl); err != nil { + if err := util.DownloadFile(pathu.TmpPath, distURL); err != nil { fmt.Print(" ") util.PrintError(err) return nil