Skip to content

Commit d9b88f7

Browse files
author
scala-steward
committed
Reformat with scalafmt 3.10.2
Executed command: scalafmt --non-interactive
1 parent e2b297c commit d9b88f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/main/scala/chimp/McpHandler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class McpHandler[F[_]](
158158
// For each sub-request, process as a single request using flatMap/fold (no .sequence)
159159
def processBatch(reqs: List[JSONRPCMessage], acc: List[JSONRPCMessage]): F[List[JSONRPCMessage]] =
160160
reqs match
161-
case Nil => acc.reverse.unit
161+
case Nil => acc.reverse.unit
162162
case head :: tail =>
163163
head match
164164
case JSONRPCMessage.Notification(_, _, _) =>

examples/src/main/scala/chimp/weatherMcp.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private def geocodeCity(city: String, backend: SyncBackend): Either[String, Nomi
7575
val nominatimUrl = uri"https://nominatim.openstreetmap.org/search?format=json&limit=1&q=$city"
7676
val geoResp = basicRequest.get(nominatimUrl).header("User-Agent", "chimp-weather-tool").send(backend)
7777
geoResp.body match
78-
case Left(_) => Left(s"Failed to contact geocoding service: ${geoResp.code}")
78+
case Left(_) => Left(s"Failed to contact geocoding service: ${geoResp.code}")
7979
case Right(body) =>
8080
decode[List[NominatimResult]](body) match
8181
case Left(err) => Left(s"Failed to decode geocoding response: $err")
@@ -87,7 +87,7 @@ private def fetchWeather(lat: String, lon: String, backend: SyncBackend): Either
8787
val meteoUrl = uri"https://api.open-meteo.com/v1/forecast?latitude=$lat&longitude=$lon&current_weather=true"
8888
val meteoResp = basicRequest.get(meteoUrl).send(backend)
8989
meteoResp.body match
90-
case Left(_) => Left(s"Failed to contact weather service: ${meteoResp.code}")
90+
case Left(_) => Left(s"Failed to contact weather service: ${meteoResp.code}")
9191
case Right(body) =>
9292
decode[OpenMeteoResponse](body) match
9393
case Left(err) => Left(s"Failed to decode weather response: $err")

0 commit comments

Comments
 (0)