From 45e9139ba2abfe79b8072d9b038d8c018a83b8da Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 26 May 2023 17:07:35 -0700 Subject: 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. --- src/setup.c | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3