HomeClusterLabs Projects

Refactor: tools: Some best practices in cli_resource_delete()
6acdfc1840ceUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

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

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.