Skip to content

Commit

Permalink
Correct formatting of base :commit values
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfin committed Sep 25, 2024
1 parent d7ae030 commit 002a241
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions lib/cachex/services/courier.ex
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,16 @@ defmodule Cachex.Services.Courier do
|> Enum.reverse()

with [owner | children] <- callers do
GenServer.reply(owner, result)

result =
case result do
{:commit, value, _} ->
{:ok, value}
with {:commit, value, _} <- result do
{:commit, value}
end

{:commit, value} ->
{:ok, value}
GenServer.reply(owner, result)

value ->
value
result =
with {:commit, value} <- result do
{:ok, value}
end

for caller <- children do
Expand Down

0 comments on commit 002a241

Please sign in to comment.