Skip to content

Commit 96d187f

Browse files
committed
mix format
1 parent 5f7736a commit 96d187f

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed

lib/irc/command.ex

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -335,27 +335,28 @@ defmodule M51.Irc.Command do
335335

336336
tags = Map.drop(command.tags, ["+draft/display-name", "account"])
337337

338-
command = case command do
339-
%{params: [channel, msgid, reason]} ->
340-
%M51.Irc.Command{
341-
tags: Map.put(tags, "+draft/reply", msgid),
342-
source: "server.",
343-
command: "NOTICE",
344-
params: [channel, "#{sender}#{display_name} deleted an event: #{reason}"]
345-
}
346-
347-
%{params: [channel, msgid]} ->
348-
%M51.Irc.Command{
349-
tags: Map.put(tags, "+draft/reply", msgid),
350-
source: "server.",
351-
command: "NOTICE",
352-
params: [channel, "#{sender}#{display_name} deleted an event"]
353-
}
354-
355-
_ ->
356-
# shouldn't happen
357-
nil
358-
end
338+
command =
339+
case command do
340+
%{params: [channel, msgid, reason]} ->
341+
%M51.Irc.Command{
342+
tags: Map.put(tags, "+draft/reply", msgid),
343+
source: "server.",
344+
command: "NOTICE",
345+
params: [channel, "#{sender}#{display_name} deleted an event: #{reason}"]
346+
}
347+
348+
%{params: [channel, msgid]} ->
349+
%M51.Irc.Command{
350+
tags: Map.put(tags, "+draft/reply", msgid),
351+
source: "server.",
352+
command: "NOTICE",
353+
params: [channel, "#{sender}#{display_name} deleted an event"]
354+
}
355+
356+
_ ->
357+
# shouldn't happen
358+
nil
359+
end
359360

360361
# run downgrade() recursively in order to drop the new tags if necessary
361362
downgrade(command, capabilities)

lib/matrix_client/poller.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,9 @@ defmodule M51.MatrixClient.Poller do
916916
params: [channel, redacts_id]
917917
})
918918
end
919-
_ -> nil
919+
920+
_ ->
921+
nil
920922
end
921923
end
922924

0 commit comments

Comments
 (0)