HomeClusterLabs Projects

Refactor: libcrmcommon: de-indent an "if" block in update_validation()

Description

Refactor: libcrmcommon: de-indent an "if" block in update_validation()

The code previously had logic in a while loop like:

if (transform) {
    ...boatload of code...
} else {
    ...one-liner...
}

To make it easier to follow, change it to:

if (!transform) {
    ...one-liner...
    continue;
}
...boatload of code...

Nothing but indentation changes.

Details

Provenance
kgaillotAuthored on Apr 17 2024, 1:32 PM
Parents
rP0c55c5f61f28: Refactor: libcrmcommon: separate an "if" block in update_validation()
Branches
Unknown
Tags
Unknown