summaryrefslogtreecommitdiff
path: root/src/util/asset_manager.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-01-31 21:11:11 +0100
committerskal <pascal.massimino@gmail.com>2026-01-31 21:11:11 +0100
commit25e693cc46324b4ec588530de542bba8af6f47c6 (patch)
tree8a959e442f9330dd3f881fe4109e83b831f25a7e /src/util/asset_manager.cc
parent9379697ccdf6f44ade7933d5635f72f644f6b92e (diff)
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.
Diffstat (limited to 'src/util/asset_manager.cc')
-rw-r--r--src/util/asset_manager.cc6
1 files changed, 2 insertions, 4 deletions
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;
}