This is just Jetbrains formatting and code syntax styling
This commit is contained in:
@@ -4,16 +4,17 @@ using SptCommon.Annotations;
|
||||
using LogLevel = Core.Models.Spt.Logging.LogLevel;
|
||||
|
||||
namespace Core.Services.Cache;
|
||||
|
||||
[Injectable]
|
||||
public class ModHashCacheService(
|
||||
ISptLogger<ModHashCacheService> _logger,
|
||||
JsonUtil _jsonUtil,
|
||||
HashUtil _hashUtil,
|
||||
FileUtil _fileUtil
|
||||
)
|
||||
)
|
||||
{
|
||||
protected readonly Dictionary<string, string> _modHashes = new();
|
||||
protected readonly string _modCachePath = "./user/cache/modCache.json";
|
||||
protected readonly Dictionary<string, string> _modHashes = new();
|
||||
|
||||
public string? GetStoredValue(string key)
|
||||
{
|
||||
@@ -28,10 +29,7 @@ public class ModHashCacheService(
|
||||
|
||||
_fileUtil.WriteFile(_modCachePath, _jsonUtil.Serialize(_modHashes));
|
||||
|
||||
if (_logger.IsLogEnabled(LogLevel.Debug))
|
||||
{
|
||||
_logger.Debug($"Mod {key} hash stored in: {_modCachePath}");
|
||||
}
|
||||
if (_logger.IsLogEnabled(LogLevel.Debug)) _logger.Debug($"Mod {key} hash stored in: {_modCachePath}");
|
||||
}
|
||||
|
||||
public bool MatchWithStoredHash(string modName, string hash)
|
||||
|
||||
Reference in New Issue
Block a user