From 57cf05f14ef95b3d99fa1c0b33561aff72a65369 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Fri, 30 Oct 2026 17:54:49 +0530 Subject: Better place to check them is loadconfig. Can't setmetatable() in loadconfig without the type check. These are redundant here now. --- elf/section.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'elf/section.lua') diff --git a/elf/section.lua b/elf/section.lua index 801a1d8..805a450 100644 --- a/elf/section.lua +++ b/elf/section.lua @@ -14,7 +14,6 @@ local fmt = require("elf.fmt") local M = {} function M.normalize(section) - if type(section) ~= "table" then error("section must be a table", 3) end if not section.name then error("name is required in section", 3) end if not section.type then error("type is required in section", 3) end if not section.flags then error("flags required in section", 3) end -- cgit v1.3