From be057e135e4e1555d0a0274438631f7a7541693c Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Wed, 7 May 2014 17:04:25 +0200 Subject: [PATCH] assert args Signed-off-by: Tobias Ulmer --- local/licence.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/local/licence.lua b/local/licence.lua index 09aab3c..c67b387 100644 --- a/local/licence.lua +++ b/local/licence.lua @@ -114,6 +114,8 @@ end -- @return LicenceID or false on error. -- @return Error object on failure. function licence.licence:licenceid(info) + assert(type(info) == "table", "info invalid") + local rc, re, e, hc, fileid if self._licenceid then -- 2.39.5