Skip to content

Commit

Permalink
🎨 lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ikura-hamu committed Aug 23, 2024
1 parent da2afb8 commit 5c6ebd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"go.lintTool": "golangci-lint",
"go.lintFlags": [
"--fast"
// "--fast"
]
}
7 changes: 4 additions & 3 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ var initCmd = &cobra.Command{
if err != nil {
panic(err)
}
defer term.Restore(int(os.Stdin.Fd()), oldState)
defer func() {
err := term.Restore(int(os.Stdin.Fd()), oldState)
cobra.CheckErr(err)
}()

prompts := []struct {
prompt string
Expand Down Expand Up @@ -84,8 +87,6 @@ var initCmd = &cobra.Command{
err = viper.SafeWriteConfig()
}
cobra.CheckErr(err)

return
},
}

Expand Down

0 comments on commit 5c6ebd9

Please sign in to comment.