Преглед изворни кода

Merge pull request #98980 from Logharaa/remove-unnecessary-condition

Remove unnecessary condition in WAV importer
Thaddeus Crews пре 10 месеци
родитељ
комит
560dfc738d
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      editor/import/resource_importer_wav.cpp

+ 1 - 3
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);