Skip to content

Commit b516210

Browse files
committed
fix(dialyzer): silence no_return on contract_drift halt path
emit_drift_and_halt!/3 ends with System.halt/1; annotate for Dialyzer. Made-with: Cursor
1 parent af9a6b2 commit b516210

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/mix/tasks/scrypath/index/contract_drift.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ defmodule Mix.Tasks.Scrypath.Index.ContractDrift do
8181
end
8282
end
8383

84+
# `System.halt/1` does not return; Dialyzer reports `no_return` otherwise.
85+
@dialyzer {:nowarn_function, emit_drift_and_halt!: 3}
8486
defp emit_drift_and_halt!(schema, %Report{index: index} = report, opts) do
8587
if opts[:json] do
8688
Mix.shell().info(Jason.encode!(report))

0 commit comments

Comments
 (0)