Skip to content

Commit

Permalink
fix File.Create on Init() not disposed (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
dplarina authored Apr 25, 2024
1 parent 784a50f commit c52c8f6
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 c52c8f6

Please sign in to comment.