diff --git a/src/Microsoft.FeatureManagement.AspNetCore/FilterCollectionExtensions.cs b/src/Microsoft.FeatureManagement.AspNetCore/FilterCollectionExtensions.cs
index cfd46554..32c83f90 100644
--- a/src/Microsoft.FeatureManagement.AspNetCore/FilterCollectionExtensions.cs
+++ b/src/Microsoft.FeatureManagement.AspNetCore/FilterCollectionExtensions.cs
@@ -16,14 +16,12 @@ public static class FilterCollectionExtensions
/// The MVC filter to add and use if the feature is enabled.
/// The filter collection to add to.
/// The feature that will need to enabled to trigger the execution of the MVC filter.
- ///
- public static IFilterMetadata AddForFeature(this FilterCollection filters, string feature) where TFilterType : IAsyncActionFilter
+ /// The reference to the filter collection.
+ public static FilterCollection AddForFeature(this FilterCollection filters, string feature) where TFilterType : IAsyncActionFilter
{
- IFilterMetadata filterMetadata = null;
-
filters.Add(new FeatureGatedAsyncActionFilter(feature));
- return filterMetadata;
+ return filters;
}
}
}