Skip to content

Commit

Permalink
Renamed variable for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jul 14, 2023
1 parent 37a0b46 commit 3cc7c51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ func downloadTool(pm *packagemanager.PackageManager, tool string) *paths.Path {
if toolRelease == nil {
feedback.Fatal(fmt.Sprintf("Error getting upload tool %s", tool), feedback.ErrGeneric)
}
uploadToolDir, err := download.DownloadTool(toolRelease)
toolDir, err := download.DownloadTool(toolRelease)
if err != nil {
feedback.Fatal(fmt.Sprintf("Error downloading tool %s: %s", tool, err), feedback.ErrGeneric)
}
logrus.Debugf("upload tool downloaded in %s", uploadToolDir.String())
return uploadToolDir
logrus.Debugf("upload tool downloaded in %s", toolDir.String())
return toolDir
}

// FlashSketch is the business logic that handles the flashing procedure,
Expand Down

0 comments on commit 3cc7c51

Please sign in to comment.