Skip to content

Commit 26285ab

Browse files
committed
fix formatting
1 parent 822621d commit 26285ab

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

Flow.Launcher.Infrastructure/Image/ImageCache.cs

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,21 @@ public ImageSource this[string path]
4444
value.usage++;
4545
return value.imageSource;
4646
}
47-
else return null;
47+
48+
return null;
4849
}
4950
set
5051
{
51-
Data.AddOrUpdate(path, new ImageUsage(0, value), (k, v) =>
52-
{
53-
v.imageSource = value;
54-
v.usage++;
55-
return v;
56-
});
52+
Data.AddOrUpdate(
53+
path,
54+
new ImageUsage(0, value),
55+
(k, v) =>
56+
{
57+
v.imageSource = value;
58+
v.usage++;
59+
return v;
60+
}
61+
);
5762

5863
// 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
5964
// 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 @@ public ImageSource this[string path]
7378
}
7479
}
7580

76-
7781
public bool ContainsKey(string key)
7882
{
7983
var contains = Data.ContainsKey(key);

0 commit comments

Comments
 (0)