Skip to content

Commit

Permalink
Remove unnecessary Symbol call [NFC] (#50916)
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner committed Aug 15, 2023
1 parent 750df9f commit fd38d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/REPL/src/docview.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function _helpmode(io::IO, line::AbstractString, mod::Module=Main)
x = Meta.parse(line, raise = false, depwarn = false)
assym = Symbol(line)
expr =
if haskey(keywords, Symbol(line)) || Base.isoperator(assym) || isexpr(x, :error) ||
if haskey(keywords, assym) || Base.isoperator(assym) || isexpr(x, :error) ||
isexpr(x, :invalid) || isexpr(x, :incomplete)
# Docs for keywords must be treated separately since trying to parse a single
# keyword such as `function` would throw a parse error due to the missing `end`.
Expand Down

0 comments on commit fd38d50

Please sign in to comment.