Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Wilms committed Jan 23, 2025
1 parent 408399a commit 89a8218
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Nexus.Sources.Remote/Remote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ public async Task SetContextAsync(

// Resource locator
var resourceLocatorString = Context.SourceConfiguration?.GetStringValue("resourceLocator");
var resourceLocator = default(Uri);

if (resourceLocatorString is not null && !Uri.TryCreate(resourceLocatorString, UriKind.Absolute, out var resourceLocator))
if (resourceLocatorString is not null && !Uri.TryCreate(resourceLocatorString, UriKind.Absolute, out resourceLocator))
throw new ArgumentException("The resource locator parameter is not a valid URI.");

// Source configuration
Expand Down

0 comments on commit 89a8218

Please sign in to comment.