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

Commit 56ef142

Browse files
committed
🎨 Replace conditional with return statement
1 parent 6d87b3b commit 56ef142

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/GitHub.Api/SimpleApiClient.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,12 @@ async Task<Repository> GetRepositoryInternal()
7878

7979
public bool HasWiki()
8080
{
81-
if (hasWiki.HasValue)
82-
return hasWiki.Value;
83-
return false;
81+
return hasWiki.HasValue && hasWiki.Value;
8482
}
8583

8684
public bool IsEnterprise()
8785
{
88-
if (isEnterprise.HasValue)
89-
return isEnterprise.Value;
90-
return false;
86+
return isEnterprise.HasValue && isEnterprise.Value;
9187
}
9288

9389
async Task<bool> HasWikiInternal(Repository repo)

0 commit comments

Comments
 (0)