crun icon indicating copy to clipboard operation
crun copied to clipboard

status: simplify libcrun_status_check_directories

Open eriksjolund opened this issue 5 months ago • 3 comments
trafficstars

Remove redundant code.

This is possible because get_run_directory() is called by libcrun_get_state_directory() and crun_ensure_directory() is called by get_run_directory()

Note, this source code line is removed

libcrun_debug ("Checking run directory: %s", run_directory);

so that debug message will no longer be logged.

Summary by Sourcery

Simplify libcrun_status_check_directories by relying on libcrun_get_state_directory to handle run directory setup and eliminate unnecessary code.

Enhancements:

  • Remove redundant get_run_directory() and crun_ensure_directory() calls in libcrun_status_check_directories
  • Remove obsolete debug message for run directory

eriksjolund avatar Jun 17 '25 05:06 eriksjolund