Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00d7f04

Browse files
Apply suggestion to src/main/scala/com/colisweb/jrubyscaladistances/JRubyScalaDistance.scala
1 parent 20d7af4 commit 00d7f04

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/scala/com/colisweb/jrubyscaladistances/JRubyScalaDistance.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,13 @@ final class JRubyScalaDistance(googleApiConfig: GoogleApiConfiguration, redisCon
5252
origin: LatLong,
5353
destination: LatLong,
5454
travelMode: TravelMode
55-
): Try[Types.Distance] = {
56-
55+
): Try[Types.Distance] =
5756
distanceApi
5857
.distance(origin, destination, List(travelMode))
5958
.unsafeRunSync()
6059
.getOrElse(travelMode, Left(new RuntimeException("Unknown travelMode exception happened")))
6160
.toTry
62-
}
61+
6362

6463
def getDrivingDistance(
6564
origin: LatLong,

0 commit comments

Comments
 (0)