Fix for editor script luacheck

This commit is contained in:
Insality 2024-10-24 09:59:40 +03:00
parent 62384f36b3
commit a46f38734e

View File

@ -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