From 89a8218257f3e279e61556516c8bab9cdd221532 Mon Sep 17 00:00:00 2001 From: Vincent Wilms Date: Thu, 23 Jan 2025 21:28:38 +0100 Subject: [PATCH] Fix CI --- src/Nexus.Sources.Remote/Remote.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Nexus.Sources.Remote/Remote.cs b/src/Nexus.Sources.Remote/Remote.cs index faefe16..4c56880 100644 --- a/src/Nexus.Sources.Remote/Remote.cs +++ b/src/Nexus.Sources.Remote/Remote.cs @@ -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