Skip to content

Commit caa893c

Browse files
committed
Revert "Apply suggestions from code review"
This reverts commit 348139a.
1 parent a9b5d9f commit caa893c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stdlib/REPL/src/REPLCompletions.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,11 +418,9 @@ function get_value(sym::Expr, fn)
418418
end
419419
sym.head !== :. && return (nothing, false)
420420
for ex in sym.args
421-
exfound = get_value(ex, fn)
422-
ex = exfound[1]; found = exfound[2]::Bool
421+
ex, found::Bool = get_value(ex, fn)
423422
!found && return (nothing, false)
424-
exfound = get_value(ex, fn)
425-
ex = exfound[1]; found = exfound[2]::Bool
423+
fn, found::Bool = get_value(ex, fn)
426424
!found && return (nothing, false)
427425
end
428426
return (fn, true)

0 commit comments

Comments
 (0)