Skip to content

Commit

Permalink
fix File.Create on Init() not disposed
Browse files Browse the repository at this point in the history
  • Loading branch information
dplarina authored Apr 24, 2024
1 parent 4e636f0 commit 5c78d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EasyCaching.Disk/DefaultDiskCachingProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private void Init()

if (!File.Exists(path))
{
File.Create(path);
using (File.Create(path)) {}
}

InitCacheKey();
Expand Down

0 comments on commit 5c78d2d

Please sign in to comment.