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

Commit 6d87b3b

Browse files
committed
Remove redundant boolean comparison
It's false if it's not OK so no need for this other check.
1 parent ad65938 commit 6d87b3b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/GitHub.Api/SimpleApiClient.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ async Task<bool> HasWikiInternal(Repository repo)
108108
return false;
109109
#endif
110110
var ret = await probe.ProbeAsync(repo);
111-
if (ret == WikiProbeResult.Failed)
112-
return false;
113111
return (ret == WikiProbeResult.Ok);
114112
}
115113

@@ -122,8 +120,6 @@ async Task<bool> IsEnterpriseInternal()
122120
return false;
123121
#endif
124122
var ret = await probe.ProbeAsync(HostAddress.WebUri);
125-
if (ret == EnterpriseProbeResult.Failed)
126-
return false;
127123
return (ret == EnterpriseProbeResult.Ok);
128124
}
129125
}

0 commit comments

Comments
 (0)