fix: fixed obj != obj checking (according to devops warnings)

This commit is contained in:
Notselwyn 2023-12-29 19:35:32 +01:00
parent ebca114c2e
commit 04571f51b2

View file

@ -86,7 +86,7 @@ namespace SafeExamBrowser.SystemComponents.Registry
logger.Error($"Failed to read value '{name}' from registry key '{key}'!", e);
}
return value != default && value != defaultValue;
return value != default && !ReferenceEquals(value, defaultValue);
}
public bool TryGetNames(string keyName, out IEnumerable<string> names)