refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-09-05 11:53:46 +02:00
parent 9a94641b28
commit a49e9f07bc
2 changed files with 75 additions and 53 deletions
+1 -2
View File
@@ -38,8 +38,7 @@ do
end
function private.state.get()
local _, state = next(filter(copy(scan_states), function(state) return state.id == thread_id end))
return state
for _, state in scan_states do if state.id == thread_id then return state end end
end
end