Skip to content

Commit 99eb595

Browse files
committed
lib/dtutils/string added end to if to ensure that ret_val has a value
1 parent 31cdd3f commit 99eb595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dtutils/string.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ local function treat(var_string)
981981
if string.match(var_string, "CATEGORY%d") or string.match(var_string, "CATEGORY%[") then
982982
log.msg(log.info, "substituting for " .. var_string)
983983
ret_val = substitutes[var_string]
984-
if not ret_val then ret_val = ""
984+
if not ret_val then ret_val = "" end
985985
log.msg(log.info, "ret_val is " .. ret_val)
986986

987987
elseif string.match(var_string, "SEQUENCE%[") then

0 commit comments

Comments
 (0)