From 7594bef8e41c426b2aafc2e42b2b2c30a3c4a41b Mon Sep 17 00:00:00 2001 From: Eugene Auduchinok Date: Tue, 30 Jan 2024 17:28:15 +0100 Subject: [PATCH] PrettyNaming: remove the extra checks in `AddBackticksToIdentifierIfNeeded` --- src/Compiler/SyntaxTree/PrettyNaming.fs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Compiler/SyntaxTree/PrettyNaming.fs b/src/Compiler/SyntaxTree/PrettyNaming.fs index c34fb57d86eb..7ad0ff43e99e 100755 --- a/src/Compiler/SyntaxTree/PrettyNaming.fs +++ b/src/Compiler/SyntaxTree/PrettyNaming.fs @@ -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