Skip to content

Commit dfaa964

Browse files
Address review: use List.is_empty with open Core
1 parent cdab8c1 commit dfaa964

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/frontend/Warnings.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
open Core
12
module Location_span = Middle.Location_span
23
module Location = Middle.Location
34

@@ -13,5 +14,5 @@ let pp ?printed_filename ppf (span, message) =
1314
Fmt.pf ppf "@[<v4>%a%a%a@]@]" purple "Warning" maybe_loc span Fmt.text message
1415

1516
let pp_warnings ?printed_filename ppf warnings =
16-
if warnings <> [] then
17+
if not (List.is_empty warnings) then
1718
Fmt.(pf ppf "@[<v>%a@]@\n" (list ~sep:cut (pp ?printed_filename)) warnings)

0 commit comments

Comments
 (0)