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

Commit

Permalink
Simplify check
Browse files Browse the repository at this point in the history
  • Loading branch information
shana committed Oct 8, 2015
1 parent 0da9919 commit 9dc2a8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/GitHub.Exports/Primitives/UriString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ bool ParseScpSyntax(string scpString)
public Uri ToRepositoryUrl()
{
// we only want to process urls that represent network resources
if (!IsValidUri && !IsScpUri) return url;
if (IsValidUri && IsFileUri) return url;
if (!IsScpUri && (!IsValidUri || IsFileUri)) return url;

var scheme = url != null && IsHypertextTransferProtocol
? url.Scheme
Expand Down

0 comments on commit 9dc2a8e

Please sign in to comment.