summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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