fixed nullable warning
This commit is contained in:
parent
8e207c3119
commit
af822febbe
@ -98,7 +98,7 @@ public class MangaDex : Connector
|
|||||||
{
|
{
|
||||||
JsonArray relationships = manga["relationships"]!.AsArray();
|
JsonArray relationships = manga["relationships"]!.AsArray();
|
||||||
posterId = relationships.FirstOrDefault(relationship => relationship!["type"]!.GetValue<string>() == "cover_art")!["id"]!.GetValue<string>();
|
posterId = relationships.FirstOrDefault(relationship => relationship!["type"]!.GetValue<string>() == "cover_art")!["id"]!.GetValue<string>();
|
||||||
foreach (JsonNode node in relationships.Where(relationship =>
|
foreach (JsonNode? node in relationships.Where(relationship =>
|
||||||
relationship!["type"]!.GetValue<string>() == "author"))
|
relationship!["type"]!.GetValue<string>() == "author"))
|
||||||
authorIds.Add(node!["id"]!.GetValue<string>());
|
authorIds.Add(node!["id"]!.GetValue<string>());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user