Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
better fix for list error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kishinskiy committed Apr 18, 2022
1 parent d1ec8aa commit 0a63da8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/pipe/lister/passwords.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,8 @@ func readPasswords(p string) []list.Item {
items := make([]list.Item, 0)

for _, line := range strings.Split(viper.GetString("passwords"), "\n") {
if line[0] == '#' || len(line) == 0 {
if len(line) == 0 || line[0] == '#' {
continue
} else {
fmt.Println("Passwords Not Found")
os.Exit(2)
}

fields := strings.Split(line, "-|-")
Expand Down

0 comments on commit 0a63da8

Please sign in to comment.