summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-05-26 17:07:35 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-05-26 18:09:39 -0700
commit45e9139ba2abfe79b8072d9b038d8c018a83b8da (patch)
tree78749ce5bd98801640c7ebdc820f373a0c877a4e /src
parent3c64aca2f08387437ce886c09534061fb0b180b1 (diff)
setup: remove vestigial key-as-value print
Since 1a8abe80dabd this ceased to be the right thing to do, since there's no longer the whole bare-key setting with null value. It's now always a value, and the key that's optional.
Diffstat (limited to 'src')
-rw-r--r--src/setup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/setup.c b/src/setup.c
index dd626a2..30a5401 100644
--- a/src/setup.c
+++ b/src/setup.c
@@ -28,8 +28,7 @@ int setup_interactively(til_settings_t *settings, int (*setup_func)(const til_se
* validate its value against the description and assign the description if it passes.
*/
if (setting && !setting->desc) {
- /* XXX FIXME: this key as value exception is janky, make a helper to access the value or stop doing that. */
- r = til_setting_spec_check(&desc->spec, setting->value ? : setting->key);
+ r = til_setting_spec_check(&desc->spec, setting->value);
if (r < 0) {
*res_failed_desc = desc;
© All Rights Reserved