Skip to content

Commit

Permalink
lint: 🤔
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Nov 20, 2024
1 parent bcb1531 commit 28c616a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions gobrew.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (gb *GoBrew) Interactive(ask bool) {
fmt.Println(" Please consider updating your go.mod file")
c := true
if ask {
c = askForConfirmation("Do you want to use GO version same as go.mod version (" + modVersion + "@latest)?")
c = askForConfirmation("🤔 Do you want to use GO version same as go.mod version (" + modVersion + "@latest)?")
}
if c {
gb.Use(modVersion + "@latest")
Expand All @@ -169,10 +169,10 @@ func (gb *GoBrew) Interactive(ask bool) {
}

if currentVersion != latestVersion {
color.Warnf("GO Installed Version (%s) and GO Latest Version (%s) are different.\n", currentVersion, latestVersion)
color.Warnf("⚠️ GO Installed Version (%s) and GO Latest Version (%s) are different.\n", currentVersion, latestVersion)
c := true
if ask {
c = askForConfirmation("Do you want to update GO to latest version (" + latestVersion + ")?")
c = askForConfirmation("🤔 Do you want to update GO to latest version (" + latestVersion + ")?")
}
if c {
gb.Use(latestVersion)
Expand Down
4 changes: 2 additions & 2 deletions helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@ func askForConfirmation(s string) bool {
reader := bufio.NewReader(os.Stdin)

for {
fmt.Printf("%s ", s)
color.Successf("[y/n]: ")
color.Successf(s)
fmt.Print(" [y/n]: ")

response, err := reader.ReadString('\n')
if err != nil {
Expand Down

0 comments on commit 28c616a

Please sign in to comment.