From a46f38734e32dc1ad5f652866f7d1f28d6def274 Mon Sep 17 00:00:00 2001 From: Insality Date: Thu, 24 Oct 2024 09:59:40 +0300 Subject: [PATCH] Fix for editor script luacheck --- druid/editor_scripts/druid.editor_script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/druid/editor_scripts/druid.editor_script b/druid/editor_scripts/druid.editor_script index 7903c00..2f63c92 100644 --- a/druid/editor_scripts/druid.editor_script +++ b/druid/editor_scripts/druid.editor_script @@ -12,7 +12,7 @@ end local function save_file_from_dependency(dependency_file_path, output_file_path) local content = editor.get(dependency_file_path, "text") local file, err = io.open(output_file_path, "w") - if err then + if not file then print("Error:", err) return false end