HomeClusterLabs Projects

Refactor: tools: Some best practices in cli_resource_delete()

Description

Refactor: tools: Some best practices in cli_resource_delete()

Use bool instead of gboolean. Remove elses after early returns. Make
node const. Improve variable names. Put all "if (nodes == NULL)" cases
into one block (for clarity at the expense of one level of nesting). Use
gpointer * instead of void **. Bring line lengths to <= 80.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 3 2025, 7:32 PM
Parents
rP6ef0fc644dd5: Refactor: tools: Drop gratuitious pcmk_find_node() for cmd_digests
Branches
Unknown
Tags
Unknown