Skip to content

Commit d5db772

Browse files
committed
remove debug code
1 parent 4e2af78 commit d5db772

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

nattlua/parser/parser.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ function META:ParseRootNode()
374374
end
375375

376376
if imported_index and imported_index ~= true then
377-
error("WTF")
378377
self.RootStatement.imports = self.RootStatement.imports or {}
379378

380379
for _, import in ipairs(imported_index.imports) do

nlconfig.lua

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -239,22 +239,24 @@ do -- these override existing commands and should probably be made more generic
239239
}
240240
)
241241
)
242-
local lua_code = c:Emit(
243-
{
244-
pretty_print = true,
245-
string_quote = "\"",
246-
no_semicolon = true,
247-
omit_invalid_code = true,
248-
comment_type_annotations = true,
249-
type_annotations = true,
250-
force_parenthesis = true,
251-
module_encapsulation_method = "loadstring",
252-
no_newlines = false,
253-
extra_indent = {
254-
Start = {to = "Stop"},
255-
Toggle = "toggle",
256-
},
257-
}
242+
local lua_code = assert(
243+
c:Emit(
244+
{
245+
pretty_print = true,
246+
string_quote = "\"",
247+
no_semicolon = true,
248+
omit_invalid_code = true,
249+
comment_type_annotations = true,
250+
type_annotations = true,
251+
force_parenthesis = true,
252+
module_encapsulation_method = "loadstring",
253+
no_newlines = false,
254+
extra_indent = {
255+
Start = {to = "Stop"},
256+
Toggle = "toggle",
257+
},
258+
}
259+
)
258260
)
259261
lua_code = "_G.BUNDLE = true\n" .. lua_code
260262
lua_code = lua_code:gsub("%#%!%/usr%/local%/bin%/luajit\n", "\n")

0 commit comments

Comments
 (0)