Skip to content

Commit

Permalink
minor: comment format cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bhamail committed Sep 8, 2022
1 parent 90459fa commit 80ae98e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
3 changes: 2 additions & 1 deletion buildversion/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import (
const DefaultVersion = "0.0.0-dev"

var (
// these are overwritten/populated via build CLI
// these vars are overwritten/populated via build CLI

BuildVersion = DefaultVersion
BuildTime = ""
BuildCommit = ""
Expand Down
2 changes: 1 addition & 1 deletion settings/appsettings.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const (
NancyConfigFileName = ".nancy-config"
)

// settingsPath returns the path of the CLI settings directory
// AppSettingsPath returns the path of the CLI settings directory
func AppSettingsPath() string {
// TODO: Make this configurable
home, _ := os.UserHomeDir()
Expand Down
29 changes: 14 additions & 15 deletions update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
)

const (
//DefaultGithubEnterpriseAPI = "https://api.github.com/"
NancyAppName = "nancy"
NancySlug = "sonatype-nexus-community/" + NancyAppName
)
Expand Down Expand Up @@ -129,20 +128,20 @@ func findBrew() (brew string, err error) {
// HomebrewOutdated wraps the JSON output from running `brew outdated --json=v2`
// We're specifically looking for this kind of structured data from the command:
//
// {
// "formulae": [
// {
// "name": "nancy",
// "installed_versions": [
// "0.1.1248"
// ],
// "current_version": "0.1.3923",
// "pinned": false,
// "pinned_version": null
// }
// ],
// "casks": []
// }
// {
// "formulae": [
// {
// "name": "nancy",
// "installed_versions": [
// "0.1.1248"
// ],
// "current_version": "0.1.3923",
// "pinned": false,
// "pinned_version": null
// }
// ],
// "casks": []
// }
type HomebrewOutdated struct {
Formulae []struct {
Name string `json:"name"`
Expand Down

0 comments on commit 80ae98e

Please sign in to comment.