summaryrefslogtreecommitdiff
path: root/init_dir.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-10 19:09:58 +0200
committerJakob Unterwurzacher2021-08-10 19:09:58 +0200
commit463f6e8962d87bf45dccd806822d40cfff335695 (patch)
tree1738112098347b08bfdeed58fbcc0b21ab512636 /init_dir.go
parent88f5e8d76e4d13b627ec1dbf8a428d01ae1a8771 (diff)
main: take advantage of pflag slice types
Our multipleStrings type is now built in.
Diffstat (limited to 'init_dir.go')
-rw-r--r--init_dir.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/init_dir.go b/init_dir.go
index 68268a0..54a44e4 100644
--- a/init_dir.go
+++ b/init_dir.go
@@ -69,7 +69,7 @@ func initDir(args *argContainer) {
}
}
// Choose password for config file
- if args.extpass.Empty() && args.fido2 == "" {
+ if len(args.extpass) == 0 && args.fido2 == "" {
tlog.Info.Printf("Choose a password for protecting your files.")
}
{