module refactoring

This commit is contained in:
Manuel Simon Hirsig
2017-10-15 14:56:43 +02:00
committed by Simon Hirsig
parent 5e093306e6
commit 62ef2683f5
15 changed files with 69 additions and 97 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ do
do (on_complete or nop)() end
end
function get_state()
function get.state()
for _, state in pairs(scan_states) do
if state.id == thread_id then
return state
@@ -58,7 +58,7 @@ do
end
end
function get_query()
function get.query()
return state.params.queries[state.query_index]
end