From fc68bf2f0f3efeb7d15032ecb1f21b666febe370 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Mon, 16 Oct 2023 16:56:27 +1000 Subject: [PATCH] Change FlexibleCollectionsIsEnabled method to property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rui Tomé <108268980+r-tome@users.noreply.github.com> --- src/Api/Controllers/CollectionsController.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Api/Controllers/CollectionsController.cs b/src/Api/Controllers/CollectionsController.cs index 5e3012194c..b6a24ef543 100644 --- a/src/Api/Controllers/CollectionsController.cs +++ b/src/Api/Controllers/CollectionsController.cs @@ -308,10 +308,7 @@ public class CollectionsController : Controller return collection; } - private bool FlexibleCollectionsIsEnabled() - { - return _featureService.IsEnabled(FeatureFlagKeys.FlexibleCollections, _currentContext); - } + private bool FlexibleCollectionsIsEnabled => _featureService.IsEnabled(FeatureFlagKeys.FlexibleCollections, _currentContext); private void DeprecatedPermissionsGuard() {