refactor: dead code removed, methods renamed

This commit is contained in:
Jack Wills
2024-11-18 10:28:27 +00:00
parent 7f42383495
commit ba6a952413
3 changed files with 3 additions and 12 deletions
+1 -6
View File
@@ -65,12 +65,7 @@ impl CliArgs {
/// An ENV is set in the ./containerised/Dockerfile, if this is ENV found, then sleep for 250ms, else the container, for as yet unknown reasons, will close immediately
/// returns a bool, so that the `update_all_containers()` won't bother to check the entry point unless running via a container
fn check_if_in_container() -> bool {
if let Ok(value) = std::env::var(ENV_KEY) {
if value == ENV_VALUE {
return true;
}
}
false
std::env::var(ENV_KEY).map_or(false, |i| i == ENV_VALUE)
}
/// Parse cli arguments