Skip to content

Commit

Permalink
Attempt to fix finder
Browse files Browse the repository at this point in the history
  • Loading branch information
Rockster160 committed Nov 2, 2024
1 parent f945f78 commit 21e58ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/service/jil/methods/array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def execute(line, method=nil)
set_value(token, execute(line, method.to_s[..-2].to_sym))
when :find
@jil.enumerate_array(token_val(line.objname), method) { |ctx|
evalarg(line.arg, ctx)
}.first
evalarg(line.arg, ctx).presence
}&.first
else
if line.objname.match?(/^[A-Z]/)
send(method, token_val(line.objname), enum_content(line.args))
Expand Down

0 comments on commit 21e58ed

Please sign in to comment.