Browse Source

Files should be closed!

Vlad Protsenko 5 năm trước cách đây
mục cha
commit
1c7f990f65
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      docs/en/manuals/editor-scripts.md

+ 1 - 0
docs/en/manuals/editor-scripts.md

@@ -172,6 +172,7 @@ local M = {}
 function M.on_build_started(opts) 
   local file = io.open("assets/build.json", "w")
   file:write("{\"build_time\": \"".. os.date() .."\"}")
+  file:close()
 end
 
 return M