refactoring
This commit is contained in:
+1
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user