Update dependency AngleSharp.XPath to v2 (#2595)

* Update dependency AngleSharp.XPath to v2

* Update GitHub.cs

* netf fixes

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: JustArchi <JustArchi@JustArchi.net>
This commit is contained in:
renovate[bot]
2022-06-04 11:56:36 +02:00
committed by GitHub
parent beeda2777d
commit dad19956aa
6 changed files with 13 additions and 8 deletions

View File

@@ -99,7 +99,7 @@ internal static class GitHub {
return null;
}
string versionText = versionNode.GetAttribute("value");
string? versionText = versionNode.GetAttribute("value");
if (string.IsNullOrEmpty(versionText)) {
ASF.ArchiLogger.LogNullError(versionText);
@@ -115,7 +115,7 @@ internal static class GitHub {
return null;
}
string dateTimeText = dateTimeNode.GetAttribute("datetime");
string? dateTimeText = dateTimeNode.GetAttribute("datetime");
if (string.IsNullOrEmpty(dateTimeText)) {
ASF.ArchiLogger.LogNullError(dateTimeText);
@@ -129,7 +129,8 @@ internal static class GitHub {
return null;
}
result[versionText] = dateTime.ToUniversalTime();
// ReSharper disable once RedundantSuppressNullableWarningExpression - required for .NET Framework
result[versionText!] = dateTime.ToUniversalTime();
}
return result;