From 26285abfd745d32d66d724e74f7a0356b4706c81 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 12 Nov 2020 13:34:23 +1100 Subject: [PATCH] fix formatting --- .../Image/ImageCache.cs | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Flow.Launcher.Infrastructure/Image/ImageCache.cs b/Flow.Launcher.Infrastructure/Image/ImageCache.cs index 328e50828..80c6684f5 100644 --- a/Flow.Launcher.Infrastructure/Image/ImageCache.cs +++ b/Flow.Launcher.Infrastructure/Image/ImageCache.cs @@ -44,16 +44,21 @@ namespace Flow.Launcher.Infrastructure.Image value.usage++; return value.imageSource; } - else return null; + + return null; } set { - Data.AddOrUpdate(path, new ImageUsage(0, value), (k, v) => - { - v.imageSource = value; - v.usage++; - return v; - }); + Data.AddOrUpdate( + path, + new ImageUsage(0, value), + (k, v) => + { + v.imageSource = value; + v.usage++; + return v; + } + ); // To prevent the dictionary from drastically increasing in size by caching images, the dictionary size is not allowed to grow more than the permissibleFactor * maxCached size // This is done so that we don't constantly perform this resizing operation and also maintain the image cache size at the same time @@ -73,7 +78,6 @@ namespace Flow.Launcher.Infrastructure.Image } } - public bool ContainsKey(string key) { var contains = Data.ContainsKey(key);