From 1e9674e3072e70db3545c39f5066556775083e96 Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Sun, 27 Mar 2022 16:33:27 +0900 Subject: [PATCH] remove redundant `.toString` --- pprint/src-3/TPrintImpl.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pprint/src-3/TPrintImpl.scala b/pprint/src-3/TPrintImpl.scala index 54b7524..f7f9d28 100644 --- a/pprint/src-3/TPrintImpl.scala +++ b/pprint/src-3/TPrintImpl.scala @@ -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 =