mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 12:39:16 +08:00
(Wa1Audio.TryOpen): removed redundant null checks.
This commit is contained in:
parent
9e9e88f09d
commit
7e5dc325c0
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user