Skip to content

Commit

Permalink
FIx comment typo and regionize guards
Browse files Browse the repository at this point in the history
  • Loading branch information
mdesalvo committed Nov 21, 2023
1 parent 85a8c1d commit 7dcec51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RDFSharp/Query/Mirella/Algebra/RDFSPARQLEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ public class RDFSPARQLEndpoint : RDFDataSource
/// </summary>
public RDFSPARQLEndpoint(Uri baseAddress)
{
#region Guards
if (baseAddress == null)
throw new RDFQueryException("Cannot create RDFSPARQLEndpoint because given \"baseAddress\" parameter is null.");
#endregion

BaseAddress = baseAddress;
QueryParams = new NameValueCollection();
Expand All @@ -67,7 +69,7 @@ public RDFSPARQLEndpoint(Uri baseAddress)

#region Interfaces
/// <summary>
/// Gives the string representation of the variable
/// Gives the string representation of the SPARQL enpoint
/// </summary>
public override string ToString()
=> BaseAddress.ToString();
Expand Down

0 comments on commit 7dcec51

Please sign in to comment.