summaryrefslogtreecommitdiff
path: root/internal/readpassword
diff options
context:
space:
mode:
authorValient Gough2016-10-01 21:14:18 -0700
committerJakob Unterwurzacher2016-10-04 23:18:33 +0200
commitb764917cd5c1b1d61b8ce08e7af0b29793fbbb80 (patch)
tree22222f3f245d43c1c534a38d7d57b900f50d0e08 /internal/readpassword
parent31a8f8b83973867a50ac08106effb1bba3fdcb2d (diff)
lint fixes
Diffstat (limited to 'internal/readpassword')
-rw-r--r--internal/readpassword/read.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/readpassword/read.go b/internal/readpassword/read.go
index 653868e..c1fc3de 100644
--- a/internal/readpassword/read.go
+++ b/internal/readpassword/read.go
@@ -17,8 +17,8 @@ const (
exitCode = 9
)
-// Once() tries to get a password from the user, either from the terminal,
-// extpass or stdin.
+// Once tries to get a password from the user, either from the terminal, extpass
+// or stdin.
func Once(extpass string) string {
if extpass != "" {
return readPasswordExtpass(extpass)
@@ -29,8 +29,8 @@ func Once(extpass string) string {
return readPasswordTerminal("Password: ")
}
-// Twice() is the same as Once but will prompt twice if we get
-// the password from the terminal.
+// Twice is the same as Once but will prompt twice if we get the password from
+// the terminal.
func Twice(extpass string) string {
if extpass != "" {
return readPasswordExtpass(extpass)