Skip to content

Commit fd38d50

Browse files
authored
Remove unnecessary Symbol call [NFC] (#50916)
1 parent 750df9f commit fd38d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/REPL/src/docview.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function _helpmode(io::IO, line::AbstractString, mod::Module=Main)
4747
x = Meta.parse(line, raise = false, depwarn = false)
4848
assym = Symbol(line)
4949
expr =
50-
if haskey(keywords, Symbol(line)) || Base.isoperator(assym) || isexpr(x, :error) ||
50+
if haskey(keywords, assym) || Base.isoperator(assym) || isexpr(x, :error) ||
5151
isexpr(x, :invalid) || isexpr(x, :incomplete)
5252
# Docs for keywords must be treated separately since trying to parse a single
5353
# keyword such as `function` would throw a parse error due to the missing `end`.

0 commit comments

Comments
 (0)