Skip to content

Commit

Permalink
Fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed May 23, 2024
1 parent 9218fa3 commit 7ca0b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/lib/source_map_io.yojson.ml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ let of_json json =
Option.map
(fun mappings ->
assert (
String.length mappings > 2
String.length mappings >= 2
&& Char.equal mappings.[0] '"'
&& Char.equal mappings.[String.length mappings - 1] '"');
let mappings = String.sub mappings 1 (String.length mappings - 2) in
Expand Down

0 comments on commit 7ca0b47

Please sign in to comment.