config: bar: no need to check for NULL on required attributes

This commit is contained in:
Daniel Eklöf 2019-01-11 22:50:16 +01:00
parent 61a2f84651
commit 3f578d30eb
2 changed files with 34 additions and 33 deletions

View file

@ -632,16 +632,20 @@ config_verify_bar(const struct yml_node *bar)
static const struct attr_info attrs[] = {
{"height", true, &verify_int},
{"location", true, &verify_bar_location},
{"background", true, &verify_color},
{"spacing", false, &verify_int},
{"left_spacing", false, &verify_int},
{"right_spacing", false, &verify_int},
{"margin", false, &verify_int},
{"left_margin", false, &verify_int},
{"right_margin", false, &verify_int},
{"location", true, &verify_bar_location},
{"background", true, &verify_color},
{"border", false, &verify_bar_border},
{"font", false, &verify_font},
{"left", false, &verify_module_list},
{"center", false, &verify_module_list},
{"right", false, &verify_module_list},