Skip to content

Commit

Permalink
remove redundant .toString
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed May 6, 2024
1 parent 6349845 commit 1e9674e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pprint/src-3/TPrintImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ object TPrintLowPri{
}

def printSymString(s: String) =
if (s.toString.startsWith("_$")) "_"
else s.toString.stripSuffix(".type")
if (s.startsWith("_$")) "_"
else s.stripSuffix(".type")

def printBounds(lo: TypeRepr, hi: TypeRepr): fansi.Str = {
val loTree =
Expand Down

0 comments on commit 1e9674e

Please sign in to comment.