Skip to content

Commit 3f1bd28

Browse files
Fix formatting: expand try/with in AsDecimal to satisfy fantomas
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 169001f commit 3f1bd28

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/FSharp.Data.Json.Core/JsonConversions.fs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ type JsonConversions =
4848
function
4949
| JsonValue.Number n -> Some n
5050
| JsonValue.Float f when not (Double.IsInfinity f) && not (Double.IsNaN f) ->
51-
try Some(decimal f)
52-
with :? OverflowException -> None
51+
try
52+
Some(decimal f)
53+
with :? OverflowException ->
54+
None
5355
| JsonValue.String s -> TextConversions.AsDecimal cultureInfo s
5456
| _ -> None
5557

0 commit comments

Comments
 (0)