mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Style: Enforce braces around if blocks and loops
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
This commit is contained in:
@@ -39,8 +39,9 @@ Error ImageLoaderBMP::convert_to_image(Ref<Image> p_image,
|
||||
const bmp_header_s &p_header) {
|
||||
Error err = OK;
|
||||
|
||||
if (p_buffer == nullptr)
|
||||
if (p_buffer == nullptr) {
|
||||
err = FAILED;
|
||||
}
|
||||
|
||||
if (err == OK) {
|
||||
size_t index = 0;
|
||||
|
||||
Reference in New Issue
Block a user