Skip to content

Commit

Permalink
Fixed Inappropriate Logical Expression (#2113)
Browse files Browse the repository at this point in the history
Signed-off-by: fazledyn-or <[email protected]>
  • Loading branch information
fazledyn-or authored Dec 8, 2023
1 parent 80012e7 commit 159185e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mslib/msidp/idp_uwsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def do_authentication(environ, start_response, authn_context, key, redirect_uri)
logger.debug("Do authentication")
auth_info = AUTHN_BROKER.pick(authn_context)

if len(auth_info) >= 0:
if len(auth_info) > 0:
method, reference = auth_info[0]
logger.debug("Authn chosen: %s (ref=%s)", method, reference)
return method(environ, start_response, reference, key, redirect_uri)
Expand Down

0 comments on commit 159185e

Please sign in to comment.