Skip to content

Commit a5fb144

Browse files
olegrokdokshina
authored andcommitted
cleanup executor module
This patch removes a bit of dead code. `value = opts.after_tuple` - it's even not tested since we can't simply use tuple as key. Any usage of this part will raise an error. But we don't observe any failures - so let's remove it at all.
1 parent 632ce81 commit a5fb144

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

crud/select/executor.lua

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,9 @@ function executor.execute(space, index, filter_func, opts)
7777

7878
local value = opts.scan_value
7979
if opts.after_tuple ~= nil then
80-
if value == nil then
81-
value = opts.after_tuple
82-
else
83-
local new_value = generate_value(opts.after_tuple, opts.scan_value, index.parts, opts.tarantool_iter)
84-
if new_value ~= nil then
85-
value = new_value
86-
end
80+
local new_value = generate_value(opts.after_tuple, opts.scan_value, index.parts, opts.tarantool_iter)
81+
if new_value ~= nil then
82+
value = new_value
8783
end
8884
end
8985

0 commit comments

Comments
 (0)