Skip to content

Commit

Permalink
Add convert to int for windows and nolint
Browse files Browse the repository at this point in the history
  • Loading branch information
xx4h committed Sep 30, 2024
1 parent a9d8ec1 commit 498cabc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func getURL() string {
func getToken() string {
var token string
fmt.Print("Enter your hub token: ")
byteToken, err := term.ReadPassword(syscall.Stdin)
byteToken, err := term.ReadPassword(int(syscall.Stdin)) //nolint:unconvert
if err != nil {
fmt.Printf("Error: %v\n", err)
return getToken()
Expand Down

0 comments on commit 498cabc

Please sign in to comment.