Make GoLinter happy

This commit is contained in:
Winni Neessen 2022-05-08 12:09:39 +02:00
parent fc0ea3bd48
commit 5f40d8b8de
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -246,7 +246,7 @@ func ExampleBreachApi_Breaches_getAllBreaches() {
if err != nil {
panic(err)
}
if bl != nil && len(bl) != 0 {
if len(bl) != 0 {
for _, b := range bl {
fmt.Printf("Found breach:\n\tName: %s\n\tDomain: %s\n\tBreach date: %s\n\n",
b.Name, b.Domain, b.BreachDate.Time().Format("Mon, 2. January 2006"))
@ -262,7 +262,7 @@ func ExampleBreachApi_Breaches_getAllBreachesNoUnverified() {
if err != nil {
panic(err)
}
if bl != nil && len(bl) != 0 {
if len(bl) != 0 {
fmt.Printf("Found %d breaches total.\n", len(bl))
}
@ -270,7 +270,7 @@ func ExampleBreachApi_Breaches_getAllBreachesNoUnverified() {
if err != nil {
panic(err)
}
if bl != nil && len(bl) != 0 {
if len(bl) != 0 {
fmt.Printf("Found %d verified breaches total.\n", len(bl))
}
}