Skip to content

Commit

Permalink
Fixed dialyzer error
Browse files Browse the repository at this point in the history
halt/1 always raises which irritates dialyzer. Added an ignore to it.
  • Loading branch information
scohen committed Aug 23, 2023
1 parent 7670907 commit bac4cc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apps/server/lib/lexical/server/boot.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ defmodule Lexical.Server.Boot do
alias Lexical.VM.Versions
require Logger

# halt/1 will generate a "no local return" error, which is exactly right, but that's it's _job_
@dialyzer {:nowarn_function, halt: 1}

@env Mix.env()
@target Mix.target()
@dep_apps Enum.map(Mix.Dep.cached(), & &1.app)
Expand Down
2 changes: 1 addition & 1 deletion projects/lexical_shared/mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"makeup_erlang": {:hex, :makeup_erlang, "0.1.2", "ad87296a092a46e03b7e9b0be7631ddcf64c790fa68a9ef5323b6cbb36affc72", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "f3f5a1ca93ce6e092d92b6d9c049bcda58a3b617a8d888f8e7231c85630e8108"},
"nimble_parsec": {:hex, :nimble_parsec, "1.3.1", "2c54013ecf170e249e9291ed0a62e5832f70a476c61da16f6aac6dca0189f2af", [:mix], [], "hexpm", "2682e3c0b2eb58d90c6375fc0cc30bc7be06f365bf72608804fb9cffa5e1b167"},
"patch": {:hex, :patch, "0.12.0", "2da8967d382bade20344a3e89d618bfba563b12d4ac93955468e830777f816b0", [:mix], [], "hexpm", "ffd0e9a7f2ad5054f37af84067ee88b1ad337308a1cb227e181e3967127b0235"},
"stream_data": {:hex, :stream_data, "0.5.0", "b27641e58941685c75b353577dc602c9d2c12292dd84babf506c2033cd97893e", [:mix], [], "hexpm", "012bd2eec069ada4db3411f9115ccafa38540a3c78c4c0349f151fc761b9e271"},
"stream_data": {:hex, :stream_data, "0.6.0", "e87a9a79d7ec23d10ff83eb025141ef4915eeb09d4491f79e52f2562b73e5f47", [:mix], [], "hexpm", "b92b5031b650ca480ced047578f1d57ea6dd563f5b57464ad274718c9c29501c"},
}

0 comments on commit bac4cc4

Please sign in to comment.