summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorLogharaa <gaelmeheust78@gmail.com>2024-11-09 10:42:22 +0900
committerLogharaa <gaelmeheust78@gmail.com>2024-11-09 10:42:22 +0900
commitb40e04d94f1ec1b468939192f70063b00fc75c68 (patch)
treefd5729e7d49498ea4ef919396f1ab81642da06c6 /editor
parente65a23762b36b564eb94672031f37fdadba72333 (diff)
downloadredot-engine-b40e04d94f1ec1b468939192f70063b00fc75c68.tar.gz
Remove unnecessary condition
Diffstat (limited to 'editor')
-rw-r--r--editor/import/resource_importer_wav.cpp4
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);