(Wa1Audio.TryOpen): removed redundant null checks.

This commit is contained in:
morkt 2015-05-13 23:49:58 +04:00
parent 9e9e88f09d
commit 7e5dc325c0

View File

@ -66,8 +66,7 @@ namespace GameRes.Formats.Ffa
if (Binary.AsciiEqual (reader.Data, 0, "RIFF"))
{
var sound = new WaveInput (new MemoryStream (reader.Data));
if (sound != null)
file.Dispose();
file.Dispose();
return sound;
}
input = reader.Data;
@ -84,8 +83,7 @@ namespace GameRes.Formats.Ffa
var wa1 = new Wa1Reader (input);
wa1.Unpack();
var wav = new WaveInput (new MemoryStream (wa1.Data));
if (wav != null)
file.Dispose();
file.Dispose();
return wav;
}
}