Skip to content

Commit

Permalink
return conn from ConnLogger.save to allow piping
Browse files Browse the repository at this point in the history
  • Loading branch information
woylie committed Jun 16, 2017
1 parent 3f2fe3b commit c08f204
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/blue_bird/conn_logger.ex
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ defmodule BlueBird.ConnLogger do
:ok
"""
@spec save(Plug.Conn.t) :: :ok
def save(conn), do: GenServer.cast(__MODULE__, {:save, conn})
def save(conn) do
GenServer.cast(__MODULE__, {:save, conn})
conn
end

## Callbacks

Expand Down

0 comments on commit c08f204

Please sign in to comment.