mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
Remove unnecessary condition
This commit is contained in:
parent
e65a23762b
commit
b40e04d94f
@ -213,9 +213,7 @@ Error ResourceImporterWAV::import(const String &p_source_file, const String &p_s
|
||||
frames = remaining_bytes;
|
||||
}
|
||||
|
||||
if (format_channels == 0) {
|
||||
ERR_FAIL_COND_V(format_channels == 0, ERR_INVALID_DATA);
|
||||
}
|
||||
ERR_FAIL_COND_V(format_channels == 0, ERR_INVALID_DATA);
|
||||
frames /= format_channels;
|
||||
frames /= (format_bits >> 3);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user