Skip to content

Commit a7e1395

Browse files
author
Martin Preisler
committed
Fixed coding style issues
1 parent 6496649 commit a7e1395

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/XCCDF_POLICY/xccdf_policy_model.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ static void _add_selectors_for_all_xccdf_items(struct xccdf_profile *profile, st
5252
struct xccdf_item_iterator *children = NULL;
5353
if (xccdf_item_get_type(item) == XCCDF_BENCHMARK) {
5454
children = xccdf_benchmark_get_content(XBENCHMARK(item));
55-
}
56-
else if (xccdf_item_get_type(item) == XCCDF_GROUP) {
55+
} else if (xccdf_item_get_type(item) == XCCDF_GROUP) {
5756
children = xccdf_group_get_content(XGROUP(item));
5857
}
5958

@@ -96,8 +95,7 @@ struct xccdf_policy *xccdf_policy_model_create_policy_by_id(struct xccdf_policy_
9695
oscap_text_set_text(title, "No profile (default benchmark)");
9796
oscap_text_set_lang(title, "en");
9897
xccdf_profile_add_title(profile, title);
99-
}
100-
else {
98+
} else {
10199
struct xccdf_benchmark *benchmark = xccdf_policy_model_get_benchmark(policy_model);
102100
if (benchmark == NULL) {
103101
assert(benchmark != NULL);
@@ -113,8 +111,7 @@ struct xccdf_policy *xccdf_policy_model_create_policy_by_id(struct xccdf_policy_
113111
xccdf_profile_add_title(profile, title);
114112

115113
_add_selectors_for_all_xccdf_items(profile, XITEM(benchmark));
116-
}
117-
else {
114+
} else {
118115
profile = xccdf_benchmark_get_profile_by_id(benchmark, id);
119116
if (profile == NULL)
120117
return NULL;

0 commit comments

Comments
 (0)