HomeClusterLabs Projects

Refactor: libcrmcommon: simplify update_validation() loop

Description

Refactor: libcrmcommon: simplify update_validation() loop

Move the (!transform) test after the (current_schema->schema_index == max)
test. If the current schema is the maximum, then the next iteration will just
hit the (current_schema->schema_index > max) test and break anyway.

This allows us to combine the (!transform) and
(current_schema->transform == NULL) tests for simplicity.

Details

Provenance
kgaillotAuthored on Apr 22 2024, 3:38 PM
Parents
rP80fc9aa333a6: Test: cts-cli: update expected outputs for log message changes
Branches
Unknown
Tags
Unknown