Skip to content

Commit 8a25d9d

Browse files
committed
tl gen: minor internal tweak
1 parent dc6427e commit 8a25d9d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tlcli/commands/gen.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ local function write_out(tlconfig, module, output_file, gen_opts, tree)
5151
make_dir_for(output_file)
5252
end
5353
ofd, err = io.open(output_file, "wb")
54-
end
55-
if not ofd then
56-
common.die("cannot write " .. prettyname .. ": " .. err)
54+
if not ofd then
55+
common.die("cannot write " .. prettyname .. ": " .. err)
56+
end
5757
end
5858

5959
local lua_code = module:gen(gen_opts)

tlcli/commands/gen.tl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ local function write_out(tlconfig: TlConfig, module: Module, output_file: string
5151
make_dir_for(output_file)
5252
end
5353
ofd, err = io.open(output_file, "wb")
54-
end
55-
if not ofd then
56-
common.die("cannot write " .. prettyname .. ": " .. err)
54+
if not ofd then
55+
common.die("cannot write " .. prettyname .. ": " .. err)
56+
end
5757
end
5858

5959
local lua_code = module:gen(gen_opts)

0 commit comments

Comments
 (0)