Skip to content

Commit

Permalink
Merge pull request #9669 from nzdev/v8/bugfix/nullableint-umbracohelper
Browse files Browse the repository at this point in the history
Minor optimisation by passing int instead of int? to Umbraco.Content()
  • Loading branch information
Shazwazza authored Jan 21, 2021
2 parents e0f00a8 + 5c5d0da commit 335c6b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected virtual void ConfigurePublishedContentRequest(PublishedRequest request
{
if (_contentId.HasValue)
{
var content = Umbraco.Content(_contentId);
var content = Umbraco.Content(_contentId.Value);
if (content == null)
{
throw new InvalidOperationException("Could not resolve content with id " + _contentId);
Expand Down

0 comments on commit 335c6b1

Please sign in to comment.