Skip to content

Commit 92aae98

Browse files
committed
Separate file handler method calls
1 parent 01106ed commit 92aae98

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

modules/DependencyControl.moon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ class DependencyControl
542542

543543
rec = DependencyControl{
544544
name: "DependencyControl",
545-
version: "0.6.3",
545+
version: "0.6.4",
546546
description: "Provides script management and auto-updating for Aegisub macros and modules.",
547547
author: "line0",
548548
url: "http://github.com/TypesettingTools/DependencyControl",

modules/DependencyControl/Logger.moon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ class Logger
5858
@handle = io.open(@fileName, "a") unless @handle
5959
linePre = @lastHadLineFeed and "#{indentStr}[#{levels[level+1]\upper!}] #{os.date '%H:%M:%S'} #{show and '+' or '•'} " or ""
6060
line = table.concat({linePre, @usePrefixFile and prefix or "", msg, lineFeed})
61-
@handle\write(line)\flush!
61+
@handle\write(line)
62+
@handle\flush!
6263

6364
-- for some reason the stack trace gets swallowed when not doing the replace
6465
assert level > 1,"#{indentStr}Error: #{prefixWin}#{msg\gsub ':', ': '}"

modules/DependencyControl/UpdateFeed.moon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ class UpdateFeed
222222

223223
if @@dumpExpanded
224224
handle = io.open @fileName\gsub(".json$", ".exp.json"), "w"
225-
handle\write(json.encode @data)\close!
225+
handle\write(json.encode @data)
226+
handle\close!
226227

227228
return @data
228229

0 commit comments

Comments
 (0)