Skip to content

Commit a2407ee

Browse files
committed
Removed unnecessary cast
1 parent 6e5b23a commit a2407ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Ignia.Topics.Web.Mvc/Controllers/LayoutControllerBase{T}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ protected T AddNestedTopics(
194194
) {
195195
tiers--;
196196
if (sourceTopic == null) {
197-
return null as T;
197+
return null;
198198
}
199199
var viewModel = _topicMappingService.Map<T>(sourceTopic, Relationships.None);
200200
if (tiers >= 0 && (allowPageGroups || !sourceTopic.ContentType.Equals("PageGroup")) && viewModel.Children.Count == 0) {

0 commit comments

Comments
 (0)