Merge all changes
This commit is contained in:
@@ -29,7 +29,12 @@ internal static class RedHatMapper
|
||||
ArgumentNullException.ThrowIfNull(payload);
|
||||
|
||||
var csaf = JsonSerializer.Deserialize<RedHatCsafEnvelope>(payload.RootElement.GetRawText(), SerializerOptions);
|
||||
var documentSection = csaf?.Document;
|
||||
if (csaf is null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var documentSection = csaf.Document;
|
||||
if (documentSection is null)
|
||||
{
|
||||
return null;
|
||||
@@ -722,7 +727,7 @@ internal sealed class RedHatProductIndex
|
||||
return new RedHatProductIndex(products);
|
||||
}
|
||||
|
||||
public bool TryGetValue(string productId, out RedHatProductNode node)
|
||||
public bool TryGetValue(string productId, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] out RedHatProductNode? node)
|
||||
=> _products.TryGetValue(productId, out node);
|
||||
|
||||
private static void Traverse(RedHatProductBranch? branch, IDictionary<string, RedHatProductNode> products)
|
||||
|
||||
Reference in New Issue
Block a user