Skip to content

Commit

Permalink
Merge pull request #1105 from Shion1305/shion/issue-1104
Browse files Browse the repository at this point in the history
#1104 Fix golanglint-ci lint config & lint errors
  • Loading branch information
dhui authored Jun 10, 2024
2 parents 04b36eb + 34594af commit b16220c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run:
linters:
enable:
#- golint
- interfacer
#- interfacer
- unconvert
#- dupl
- goconst
Expand Down
4 changes: 2 additions & 2 deletions internal/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down Expand Up @@ -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" {
Expand Down

0 comments on commit b16220c

Please sign in to comment.