From 25e693cc46324b4ec588530de542bba8af6f47c6 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 31 Jan 2026 21:11:11 +0100 Subject: style: add vertical compression rules to clang-format - Enabled AllowShortFunctionsOnASingleLine: All - Enabled AllowShortBlocksOnASingleLine: Always - Enabled AllowShortIfStatementsOnASingleLine: Always - Enabled AllowShortLoopsOnASingleLine: true - Set MaxEmptyLinesToKeep: 1 - Applied formatting to all source files. --- src/util/asset_manager.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/util/asset_manager.cc') diff --git a/src/util/asset_manager.cc b/src/util/asset_manager.cc index 33b697b..de3934b 100644 --- a/src/util/asset_manager.cc +++ b/src/util/asset_manager.cc @@ -12,14 +12,12 @@ extern const size_t g_assets_count; const uint8_t *GetAsset(AssetId asset_id, size_t *out_size) { uint16_t index = (uint16_t)asset_id; if (index >= g_assets_count) { - if (out_size) - *out_size = 0; + if (out_size) *out_size = 0; return nullptr; } const AssetRecord &record = g_assets[index]; - if (out_size) - *out_size = record.size; + if (out_size) *out_size = record.size; return record.data; } -- cgit v1.2.3