Skip to content

Commit

Permalink
remove unecessary null check
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikus1993 committed Apr 6, 2021
1 parent c82584c commit 48c7d47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public async Task<Option<Article[]>> Parse(string name)

return result.Data.Posts
.Where(x => x.Post is not null)
.Select(x => new Article(x.Post?.Title ?? "", x.Post?.Content, x.Post?.Url ?? ""))
.Select(x => new Article(x.Post.Title ?? "", x.Post.Content, x.Post.Url ?? ""))
.ToArray();
}
}
Expand Down

0 comments on commit 48c7d47

Please sign in to comment.