From f53db9827a2b2f2b08ba5cbf98f1b0aa76f9632d Mon Sep 17 00:00:00 2001 From: Brandon Henricks Date: Fri, 10 Jan 2025 11:02:40 -0500 Subject: [PATCH] Refactor AddDependencyKeys to be a generic method Updated AddDependencyKeys method signature from `private static void AddDependencyKeys(object value, HashSet dependencyKeys)` to `private static void AddDependencyKeys(T value, HashSet dependencyKeys)`. This change enhances flexibility and type safety by allowing the method to accept any type specified at the time of the method call. --- .../Builders/CacheDependencyBuilder.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/XperienceCommunity.DataRepository/Builders/CacheDependencyBuilder.cs b/src/XperienceCommunity.DataRepository/Builders/CacheDependencyBuilder.cs index 4dca3fe..e40f727 100644 --- a/src/XperienceCommunity.DataRepository/Builders/CacheDependencyBuilder.cs +++ b/src/XperienceCommunity.DataRepository/Builders/CacheDependencyBuilder.cs @@ -24,9 +24,8 @@ public sealed class CacheDependencyBuilder : ICacheDependencyBuilder } - private static void AddDependencyKeys(object value, HashSet dependencyKeys) + private static void AddDependencyKeys(T value, HashSet dependencyKeys) { - switch (value) { case null: