diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-10 12:12:33 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-10 12:12:33 -0600 |
commit | 560dfc738da13db0f8f7f8d4d9fbc1d6446aa006 (patch) | |
tree | 7bbcc8abb5abd87e6178c044494e1d1c250ef0bf | |
parent | 792671f4d0ca0112816672f0f6c29645f4e295f0 (diff) | |
parent | b40e04d94f1ec1b468939192f70063b00fc75c68 (diff) | |
download | redot-engine-560dfc738da13db0f8f7f8d4d9fbc1d6446aa006.tar.gz |
Merge pull request #98980 from Logharaa/remove-unnecessary-condition
Remove unnecessary condition in WAV importer
-rw-r--r-- | editor/import/resource_importer_wav.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/editor/import/resource_importer_wav.cpp b/editor/import/resource_importer_wav.cpp index 339e7921b3..2654952e8a 100644 --- a/editor/import/resource_importer_wav.cpp +++ b/editor/import/resource_importer_wav.cpp @@ -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); |