Skip to content

Commit

Permalink
Fixing build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
BenedekFarkas committed Mar 8, 2024
1 parent 049cc6a commit f2f3a25
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Linq;
using Orchard.ContentManagement;
using Orchard.Events;
using Orchard.ContentPicker.Fields;
using Orchard.Events;
using Orchard.Localization;
using NHibernate.Util;

namespace Orchard.ContentPicker.Tokens {
public interface ITokenProvider : IEventHandler {
Expand All @@ -30,7 +30,7 @@ public void Evaluate(dynamic context) {
context.For<ContentPickerField>("ContentPickerField")
.Token("Content", (Func<ContentPickerField, object>)(field => field.Ids[0]))
.Chain("Content", "Content", (Func<ContentPickerField, object>)(field => {
var id = field.Ids.Any() ? field.Ids[0] : 0;
var id = field.Ids.Any() ? field.Ids[0] : 0;
return _contentManager.Get(id);
}))
;
Expand Down

0 comments on commit f2f3a25

Please sign in to comment.