aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2024-12-04 19:07:10 +0100
committerJakob Unterwurzacher2024-12-04 19:07:10 +0100
commit634a450d781d3430bb63362ee75cfa1d9a840f6f (patch)
tree682f0e605f4b099b6de34e354ea95bc6a5e2ed06
parent11f338f74fffc94bf16cea834aafccda30bd1240 (diff)
changePassword: drop useless cast
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index bb4c4e2..469f5a0 100644
--- a/main.go
+++ b/main.go
@@ -83,7 +83,7 @@ func changePassword(args *argContainer) {
os.Exit(exitcodes.Usage)
}
tlog.Info.Println("Please enter your new password.")
- newPw, err := readpassword.Twice([]string(args.extpass), []string(args.passfile))
+ newPw, err := readpassword.Twice(args.extpass, args.passfile)
if err != nil {
tlog.Fatal.Println(err)
os.Exit(exitcodes.ReadPassword)