diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-08-31 11:39:15 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-08-31 11:39:15 -0700 |
commit | c5e0f1db92673e7520e42563dff894b211187b28 (patch) | |
tree | e3ada72453981be794ae142d172df1b080e04669 /src/modules/compose | |
parent | 0bda624d63d375ffe9aa564e615d82f58ed0d4bb (diff) |
til_setup: add another helper for setup_func baking fails
This introduces til_setup_free_with_ret_err()
which just does the common idiom of:
- free the setup
- return with err code
so all these failure cases can be reduced to just a direct return
of calling this function.
Simpler version of til_setup_free_with_failed_setting_ret_err(),
which could have been reuesed for this by making the settings-related
parameters optional... but this way the call sites are less verbose
and these are tiny helpers it's harmless.
Diffstat (limited to 'src/modules/compose')
0 files changed, 0 insertions, 0 deletions