mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Use new ArgumentNullException.ThrowIfNull throw-helper API
This commit is contained in:
@ -23,8 +23,7 @@ namespace osu.Game.IO.FileAbstraction
|
||||
|
||||
public void CloseStream(Stream stream)
|
||||
{
|
||||
if (stream == null)
|
||||
throw new ArgumentNullException(nameof(stream));
|
||||
ArgumentNullException.ThrowIfNull(stream);
|
||||
|
||||
stream.Close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user