comparison multipass-add.go @ 2:a4fa4f28b472

Actually shave off last character of password description.
author Paul Fisher <paul@pfish.zone>
date Sat, 24 Oct 2015 22:34:07 -0400
parents faf4aad86fc9
children 406d3cd76739
comparison
equal deleted inserted replaced
1:faf4aad86fc9 2:a4fa4f28b472
18 text, err := reader.ReadString('\n') 18 text, err := reader.ReadString('\n')
19 if err != nil { 19 if err != nil {
20 fmt.Println(err.Error()) 20 fmt.Println(err.Error())
21 return 21 return
22 } 22 }
23 text = text[:-1] 23 text = text[:len(text)-1]
24 entry, password, err := auth.NewEntry(text) 24 entry, password, err := auth.NewEntry(text)
25 if err != nil { 25 if err != nil {
26 fmt.Println(err.Error()) 26 fmt.Println(err.Error())
27 return 27 return
28 } 28 }