Skip to content

Commit

Permalink
fix: typo in comments
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Zipitria <[email protected]>
  • Loading branch information
fzipi committed May 21, 2023
1 parent a5bf7f1 commit ef83076
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/updater/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

var logger = log.With().Str("component", "updater").Logger()

// getLatestVersionFromGitHub checks the latest version in GitHub and returns it.
// getLatestVersionFromGitHub checks the latest version on GitHub and returns it.
func getLatestVersionFromGitHub() (*selfupdate.Release, error) {
source, err := selfupdate.NewGitHubSource(selfupdate.GitHubConfig{})
if err != nil {
Expand All @@ -33,12 +33,12 @@ func getLatestVersionFromGitHub() (*selfupdate.Release, error) {
return latest, fmt.Errorf("error occurred while detecting version: %w", err)
}
if !found {
return latest, fmt.Errorf("latest version for %s/%s could not be found in GitHub repository", runtime.GOOS, runtime.GOARCH)
return latest, fmt.Errorf("latest version for %s/%s could not be found on GitHub repository", runtime.GOOS, runtime.GOARCH)
}
return latest, nil
}

// LatestVersion checks the latest version in GitHub and returns it.
// LatestVersion checks the latest version on GitHub and returns it.
func LatestVersion() (string, error) {
latest, err := getLatestVersionFromGitHub()
if err != nil {
Expand All @@ -47,7 +47,7 @@ func LatestVersion() (string, error) {
return latest.Version(), nil
}

// Updater checks the latest version in GitHub and self-updates if there is a newer release.
// Updater checks the latest version on GitHub and self-updates if there is a newer release.
// Returns the version string of the updated release, or an error if something went wrong.
func Updater(version string, executablePath string) (string, error) {
emptyVersion := ""
Expand Down

0 comments on commit ef83076

Please sign in to comment.