crun
crun copied to clipboard
status: simplify libcrun_status_check_directories
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