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

Commit 9dc2a8e

Browse files
committed
Simplify check
1 parent 0da9919 commit 9dc2a8e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/GitHub.Exports/Primitives/UriString.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ bool ParseScpSyntax(string scpString)
135135
public Uri ToRepositoryUrl()
136136
{
137137
// we only want to process urls that represent network resources
138-
if (!IsValidUri && !IsScpUri) return url;
139-
if (IsValidUri && IsFileUri) return url;
138+
if (!IsScpUri && (!IsValidUri || IsFileUri)) return url;
140139

141140
var scheme = url != null && IsHypertextTransferProtocol
142141
? url.Scheme

0 commit comments

Comments
 (0)