Added RET keyword
This commit is contained in:
@@ -326,13 +326,13 @@ class SheerkaExecute(BaseService):
|
||||
result = evaluator.eval(sub_context, item)
|
||||
if result is None:
|
||||
# match() was successful but nothing was done in eval
|
||||
# most of the time, it's because checks made in eval were unsuccessful
|
||||
# most of the time, it's because extra checks are unsuccessful
|
||||
debug_result.append({"input": item, "return_value": None})
|
||||
continue
|
||||
|
||||
if id(result) == id(item):
|
||||
# eval was successful, but we don't want to alter the processing flow
|
||||
debug_result.append({"input": item, "return_value": item})
|
||||
debug_result.append({"input": item, "return_value": result})
|
||||
continue
|
||||
|
||||
# otherwise, item will be removed and replaced by result
|
||||
|
||||
Reference in New Issue
Block a user