Skip to content

Commit 28c616a

Browse files
lint: 🤔
1 parent bcb1531 commit 28c616a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

gobrew.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func (gb *GoBrew) Interactive(ask bool) {
160160
fmt.Println(" Please consider updating your go.mod file")
161161
c := true
162162
if ask {
163-
c = askForConfirmation("Do you want to use GO version same as go.mod version (" + modVersion + "@latest)?")
163+
c = askForConfirmation("🤔 Do you want to use GO version same as go.mod version (" + modVersion + "@latest)?")
164164
}
165165
if c {
166166
gb.Use(modVersion + "@latest")
@@ -169,10 +169,10 @@ func (gb *GoBrew) Interactive(ask bool) {
169169
}
170170

171171
if currentVersion != latestVersion {
172-
color.Warnf("GO Installed Version (%s) and GO Latest Version (%s) are different.\n", currentVersion, latestVersion)
172+
color.Warnf("⚠️ GO Installed Version (%s) and GO Latest Version (%s) are different.\n", currentVersion, latestVersion)
173173
c := true
174174
if ask {
175-
c = askForConfirmation("Do you want to update GO to latest version (" + latestVersion + ")?")
175+
c = askForConfirmation("🤔 Do you want to update GO to latest version (" + latestVersion + ")?")
176176
}
177177
if c {
178178
gb.Use(latestVersion)

helpers.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,8 @@ func askForConfirmation(s string) bool {
503503
reader := bufio.NewReader(os.Stdin)
504504

505505
for {
506-
fmt.Printf("%s ", s)
507-
color.Successf("[y/n]: ")
506+
color.Successf(s)
507+
fmt.Print(" [y/n]: ")
508508

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

0 commit comments

Comments
 (0)