Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit bf30134

Browse files
tixpaulmarcoceppi
authored andcommitted
#140: Remove check for result where it should be null
1 parent 3847f38 commit bf30134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Auth/OpenID/Consumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ function _verifyDiscoveryServices($claimed_id,
12631263
foreach ($to_match_endpoints as $to_match_endpoint) {
12641264
$result = $this->_verifyDiscoverySingle($endpoint, $to_match_endpoint);
12651265

1266-
if ($result && !Auth_OpenID::isFailure($result)) {
1266+
if (!Auth_OpenID::isFailure($result)) {
12671267
// It matches, so discover verification has
12681268
// succeeded. Return this endpoint.
12691269
return $endpoint;

0 commit comments

Comments
 (0)