Skip to content

Commit

Permalink
PrettyNaming: remove the extra checks in `AddBackticksToIdentifierIfN…
Browse files Browse the repository at this point in the history
…eeded`
  • Loading branch information
auduchinok committed Jan 30, 2024
1 parent 1c4245c commit 7594bef
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Compiler/SyntaxTree/PrettyNaming.fs
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,6 @@ let DoesIdentifierNeedBackticks (name: string) : bool =
let AddBackticksToIdentifierIfNeeded (name: string) : string =
if
DoesIdentifierNeedBackticks name
&& not (name.StartsWithOrdinal("`"))
&& not (name.EndsWithOrdinal("`"))
then
"``" + name + "``"
else
Expand Down

0 comments on commit 7594bef

Please sign in to comment.