Skip to content

Commit

Permalink
simplify err check logic per linter recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin-decker committed Oct 29, 2022
1 parent d27c2e6 commit 0c3810b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/detectors/uri/uri.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,8 @@ func verifyFTP(ctx context.Context, u *url.URL) bool {

password, _ := u.User.Password()
err = c.Login(u.User.Username(), password)
if err != nil {
return false
}

return true
return err == nil
}

func verifyRedis(ctx context.Context, u *url.URL) bool {
Expand Down

0 comments on commit 0c3810b

Please sign in to comment.