unittest: Move nil checks to Gcc:preprocess

This commit is contained in:
ZyX
2017-01-03 16:25:04 +03:00
parent 0d7b779cab
commit 2151ddbd73
3 changed files with 24 additions and 28 deletions

View File

@@ -221,10 +221,6 @@ local function standalone(...) -- luacheck: ignore
local raw = Preprocess.preprocess('', arg[1])
if raw == nil then
print("ERROR: Preprocess.preprocess() returned empty")
end
local formatted
if #arg == 2 and arg[2] == 'no' then
formatted = raw