]> git.e2factory.org Git - e2factory.git/commitdiff
e2tool: make set_info() local
authorTobias Ulmer <tu@emlix.com>
Wed, 22 Jun 2016 15:06:55 +0000 (17:06 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/e2tool.lua

index ed1ae95936e13159436016d924491b79b025abe4..2fe93644d5a70e4975b23468cc331188499affa9 100644 (file)
@@ -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