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

Commit

Permalink
Merge pull request #217 from Kishinskii/main
Browse files Browse the repository at this point in the history
better fix for list error
  • Loading branch information
abdfnx authored Apr 18, 2022
2 parents dc9437f + 0a63da8 commit 5f35eb5
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 5f35eb5

Please sign in to comment.