From: Tobias Ulmer Date: Wed, 22 Jun 2016 15:06:55 +0000 (+0200) Subject: e2tool: make set_info() local X-Git-Tag: e2factory-2.3.15rc1~142 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=56eb4573b72fe778bc2785c182b5ece237636ead;p=e2factory.git e2tool: make set_info() local Signed-off-by: Tobias Ulmer --- diff --git a/local/e2tool.lua b/local/e2tool.lua index ed1ae95..2fe9364 100644 --- a/local/e2tool.lua +++ b/local/e2tool.lua @@ -131,8 +131,8 @@ end --- Set a new info table. -- @param t Table to use for info. -- @return The new info table. -function e2tool.set_info(t) - assert(type(t) == "table") +local function set_info(t) + assertIsTable(t) _info = t return _info end @@ -154,7 +154,7 @@ function e2tool.local_init(path, tool) local e = err.new("initializing local tool") local info - info = e2tool.set_info({}) + info = set_info({}) info.current_tool = tool