🚨 golangci-lint: fix for errcheck lint errors

This commit is contained in:
Shion Ichikawa
2024-06-05 23:40:12 +09:00
parent c4616fe96f
commit bab85e01ff
+2 -2
View File
@@ -275,7 +275,7 @@ Database drivers: `+strings.Join(database.List(), ", ")+"\n", createUsage, gotoU
if needsConfirm {
log.Println("Are you sure you want to apply all down migrations? [y/N]")
var response string
fmt.Scanln(&response)
_, _ = fmt.Scanln(&response)
response = strings.ToLower(strings.TrimSpace(response))
if response == "y" {
@@ -306,7 +306,7 @@ Database drivers: `+strings.Join(database.List(), ", ")+"\n", createUsage, gotoU
if !*forceDrop {
log.Println("Are you sure you want to drop the entire database schema? [y/N]")
var response string
fmt.Scanln(&response)
_, _ = fmt.Scanln(&response)
response = strings.ToLower(strings.TrimSpace(response))
if response == "y" {