Enable nullability everywhere

This commit is contained in:
Matt Nadareski
2024-02-28 19:19:50 -05:00
parent 11d024bd16
commit 823a9ca7b7
145 changed files with 1545 additions and 1260 deletions

View File

@@ -24,7 +24,7 @@ namespace SabreTools.DatFiles.Formats
/// <summary>
/// Convert hash types between internal and Serialization
/// </summary>
private Serialization.Hash ConvertHash(Hash hash)
private static Serialization.Hash ConvertHash(Hash hash)
{
return hash switch
{
@@ -35,7 +35,7 @@ namespace SabreTools.DatFiles.Formats
Hash.SHA384 => Serialization.Hash.SHA384,
Hash.SHA512 => Serialization.Hash.SHA512,
Hash.SpamSum => Serialization.Hash.SpamSum,
_ => throw new System.ArgumentOutOfRangeException(),
_ => throw new System.ArgumentOutOfRangeException(nameof(hash)),
};
}
}