Skip to content

Commit 99dbeaf

Browse files
committed
Fix compilation warnings with Elixir 1.19
1 parent 72da3e0 commit 99dbeaf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/error_tracker.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@ defmodule ErrorTracker do
369369
{error, occurrence}
370370
end)
371371

372-
occurrence = %Occurrence{occurrence | error: error}
372+
%Occurrence{} = occurrence
373+
occurrence = %{occurrence | error: error}
373374

374375
# If the error existed and was marked as resolved before this exception,
375376
# sent a Telemetry event

lib/error_tracker/web/live/dashboard.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ defmodule ErrorTracker.Web.Live.Dashboard do
3030
def handle_event("search", params, socket) do
3131
search = Search.from_params(params["search"] || %{})
3232

33-
path_w_filters = %URI{socket.assigns.path | query: URI.encode_query(search)}
33+
%URI{} = path = socket.assigns.path
34+
path_w_filters = %{path | query: URI.encode_query(search)}
3435

3536
{:noreply, push_patch(socket, to: URI.to_string(path_w_filters))}
3637
end

0 commit comments

Comments
 (0)