From 78decb4597ada63402bacfa6769d2bf623488328 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Mon, 24 Feb 2025 16:51:37 -0500 Subject: [PATCH] Refactor: Coderabbit suggestions --- emhttp/plugins/dynamix.docker.manager/scripts/docker_init | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix.docker.manager/scripts/docker_init b/emhttp/plugins/dynamix.docker.manager/scripts/docker_init index 71c2a70a2..b4ef9013f 100755 --- a/emhttp/plugins/dynamix.docker.manager/scripts/docker_init +++ b/emhttp/plugins/dynamix.docker.manager/scripts/docker_init @@ -15,8 +15,7 @@ foreach ($autostart as $container) { } $doc = new DOMDocument(); - $doc->load("/boot/config/plugins/dockerMan/templates-user/my-{$cont[0]}.xml"); - if ( ! $doc ) { + if (!$doc->load("/boot/config/plugins/dockerMan/templates-user/my-{$cont[0]}.xml")) { $newAuto[] = $container; continue; }