Fixed CodeQL compile issue + a warning

This commit is contained in:
Kenneth Skovhede
2025-08-07 11:24:10 +02:00
parent 81a54350b0
commit d94ca804ea
2 changed files with 2 additions and 2 deletions
@@ -148,7 +148,7 @@ namespace Duplicati.GUI.TrayIcon
var acceptedCertificates = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
if (!string.IsNullOrWhiteSpace(acceptedHostCertificate))
acceptedCertificates.UnionWith(acceptedHostCertificate.Split([',', ';'],
acceptedCertificates.UnionWith(acceptedHostCertificate.Split(new char[] { ',', ';' },
StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries));
HTTPCLIENT = new(new HttpClientHandler
@@ -418,7 +418,7 @@ public class OpenStackStorage : IStreamingBackend
yield break;
// Prepare next listing entry
url = plainurl + $"&marker={Uri.UrlEncode(items.Last().name)}";
url = plainurl + $"&marker={Uri.UrlEncode(items.Last().name ?? "")}";
}
}