We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 088322a commit f7f994fCopy full SHA for f7f994f
tools/src/tools.ml
@@ -843,7 +843,7 @@ module FormatDocstrings = struct
843
source )
844
in
845
let errors = !errors in
846
- if not (List.is_empty errors) then (
+ if List.length errors > 0 then (
847
errors |> String.concat "\n" |> print_endline;
848
Error (Printf.sprintf "Error formatting docstrings."))
849
else if formatted_content <> source then (
0 commit comments