Skip to content

Commit 34594af

Browse files
committed
🚨 golangci-lint: fix for errcheck lint errors
1 parent 1735cb3 commit 34594af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎internal/cli/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ Database drivers: `+strings.Join(database.List(), ", ")+"\n", createUsage, gotoU
275275
if needsConfirm {
276276
log.Println("Are you sure you want to apply all down migrations? [y/N]")
277277
var response string
278-
fmt.Scanln(&response)
278+
_, _ = fmt.Scanln(&response)
279279
response = strings.ToLower(strings.TrimSpace(response))
280280

281281
if response == "y" {
@@ -306,7 +306,7 @@ Database drivers: `+strings.Join(database.List(), ", ")+"\n", createUsage, gotoU
306306
if !*forceDrop {
307307
log.Println("Are you sure you want to drop the entire database schema? [y/N]")
308308
var response string
309-
fmt.Scanln(&response)
309+
_, _ = fmt.Scanln(&response)
310310
response = strings.ToLower(strings.TrimSpace(response))
311311

312312
if response == "y" {

0 commit comments

Comments
 (0)