Consolidate field string checks (fixes #141)

This commit is contained in:
Matt Nadareski
2022-08-21 20:34:59 -07:00
parent 297514ef17
commit e2492c9e5b
22 changed files with 62 additions and 62 deletions

View File

@@ -15,7 +15,7 @@ namespace BurnOutSharp.ProtectionType
return null;
string name = pex.InternalName;
if (!string.IsNullOrWhiteSpace(name) && name.Equals("CDKey", StringComparison.OrdinalIgnoreCase))
if (name?.Equals("CDKey", StringComparison.OrdinalIgnoreCase) == true)
return "CD-Key / Serial";
return null;