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 Sep 28, 2022
1 parent fb918d0 commit c9745d2
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 c9745d2

Please sign in to comment.