Skip to content
This repository has been archived by the owner on Sep 5, 2021. It is now read-only.

Commit

Permalink
Coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Jul 30, 2017
1 parent c538dd5 commit 11e1724
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/nodejs/nodejs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,17 @@ 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
}
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
Expand Down

0 comments on commit 11e1724

Please sign in to comment.