From 498cabc979437c20b736e85c5ed2083756547c65 Mon Sep 17 00:00:00 2001 From: Fabian 'xx4h' Sylvester Date: Mon, 30 Sep 2024 22:40:47 +0200 Subject: [PATCH] Add convert to int for windows and nolint --- pkg/init/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/init/init.go b/pkg/init/init.go index 91989e6..bfdb61f 100644 --- a/pkg/init/init.go +++ b/pkg/init/init.go @@ -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()