Skip to content

Commit

Permalink
Get rid of an unnecessary rescue MatchError clause
Browse files Browse the repository at this point in the history
  • Loading branch information
Gleb Ivanov committed May 24, 2024
1 parent 9543ec9 commit b177d36
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/db_connection/ownership/manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,6 @@ defmodule DBConnection.Ownership.Manager do
|> Enum.reject(&is_nil/1)

{:reply, {:ok, pool_metrics ++ proxy_metrics}, state}
rescue
error in MatchError ->
if log do
Logger.log(log, "Caught while calling :get_connection_metrics: #{inspect(error)}")
end

{:reply, :error, state}
catch
:exit, reason ->
if log do
Expand Down

0 comments on commit b177d36

Please sign in to comment.