Skip to content

Commit

Permalink
remove redundant .toString
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k authored Mar 27, 2022
1 parent f24db51 commit a82a498
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 a82a498

Please sign in to comment.