From 772a0eb39e8de305bdae265b228dd8e5a021be46 Mon Sep 17 00:00:00 2001 From: tensor-14 Date: Sat, 3 Aug 2024 19:25:29 +0530 Subject: [PATCH] fix(cache-helper): remove useless code --- FA.Cache/CacheHelper.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/FA.Cache/CacheHelper.cs b/FA.Cache/CacheHelper.cs index fb877c2..8736c2b 100644 --- a/FA.Cache/CacheHelper.cs +++ b/FA.Cache/CacheHelper.cs @@ -31,13 +31,6 @@ public async Task GetResult(string cacheKey, TimeSpan expiresIn, // Console.WriteLine($"Cache: 📁 Result: {result}"); } - var data = JsonConvert.SerializeObject(result); - if (data.Contains("Error")) - { - //Catch Redis Error and return data through DB call - result = await fetchDataFunc(); - } - return result; }