From a038cf16fe40573915bb751d3939c2306b4622da Mon Sep 17 00:00:00 2001 From: James Adams Date: Thu, 28 Nov 2024 14:22:28 +0000 Subject: [PATCH] ncm-grub: Fix wrapping and indentation in pan --- ncm-grub/src/main/pan/components/grub/schema.pan | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ncm-grub/src/main/pan/components/grub/schema.pan b/ncm-grub/src/main/pan/components/grub/schema.pan index b819f73502..e26de8f5eb 100755 --- a/ncm-grub/src/main/pan/components/grub/schema.pan +++ b/ncm-grub/src/main/pan/components/grub/schema.pan @@ -41,9 +41,8 @@ type type_grub_password = { @{See description of the file option. The user (first field) to be picked from a password field.} "file_user" : string = "root" } with { - if (is_defined(SELF["enabled"]) && SELF["enabled"] - && !is_defined(SELF["file"]) && !is_defined(SELF["password"])) { - error("specify either a hashed password or file to retrieve it from."); + if (is_defined(SELF["enabled"]) && SELF["enabled"] && !is_defined(SELF["file"]) && !is_defined(SELF["password"])) { + error("specify either a hashed password or file to retrieve it from."); }; if (is_defined(SELF["file"]) && is_defined(SELF["password"])) { error("specify either a hashed password or file to retrieve it from, not both.");