From 8b1f10cdf78bb1d5dd937e78150264484b2e2b2d Mon Sep 17 00:00:00 2001 From: Dominic Letz Date: Mon, 10 Aug 2026 20:35:26 +0800 Subject: [PATCH] ci: fix mix format --check-formatted in lib/package/macos.ex The host-driven BEAM restart commit (#18) introduced a `case` clause in `Desktop.Deployment.Package.MacOS.release/1` that the current formatter rewrites with blank lines between branches. The CI `mix lint` alias runs `format --check-formatted`, which has been failing on main since #18. Reformat the `case` so the file passes the formatter check. Co-authored-by: Cursor --- lib/package/macos.ex | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/package/macos.ex b/lib/package/macos.ex index b2a1037..9bfb553 100644 --- a/lib/package/macos.ex +++ b/lib/package/macos.ex @@ -18,8 +18,12 @@ defmodule Desktop.Deployment.Package.MacOS do def release(%Package{} = pkg) do case pkg.macos_layout do - :host_first -> release_host_first(pkg) - :release_first -> release_release_first(pkg) + :host_first -> + release_host_first(pkg) + + :release_first -> + release_release_first(pkg) + other -> raise "Unknown macos_layout #{inspect(other)}. Use :host_first or :release_first." end