Skip to content

Commit

Permalink
actually pass cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Jun 2, 2023
1 parent 4e8d491 commit b3e00ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EditorConfig.Core/EditorConfigFileCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public static EditorConfigFile GetOrCreate(string file)
if (!File.Exists(file)) return new EditorConfigFile(file);

var key = $"{file}_{GetFileHash(file)}";
return FileCache.GetOrAdd(key, _ => new EditorConfigFile(file));
return FileCache.GetOrAdd(key, _ => new EditorConfigFile(file, key));
}
}

0 comments on commit b3e00ba

Please sign in to comment.