Skip to content

Commit 6e8e0ef

Browse files
committed
Removed unneeded part in pattern match
1 parent 1935e91 commit 6e8e0ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Fable.ReactGoogleMaps/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ let bounds = mapRef.GetBounds()
145145
let setRef (ref:obj) =
146146
let bounds = ReactGoogleMaps.Coordinates.newLatLngBounds()
147147
148-
match markerPositions, Option.ofObj ref with
149-
| multiple, Some ref ->
150-
multiple
148+
match Option.ofObj ref with
149+
| Some ref ->
150+
markerPositions
151151
|> List.fold (fun (acc:LatLngBounds) pos ->
152-
acc.extend( !^ pos)
152+
acc.extend(!^ pos)
153153
) bounds
154154
|> (MapRef ref).FitBounds
155155
| _ ->

0 commit comments

Comments
 (0)