Skip to content

Commit

Permalink
update library detection to make it less strict
Browse files Browse the repository at this point in the history
trying to fix swoos herrors
  • Loading branch information
MikaAK committed Jan 28, 2024
1 parent bc13377 commit 0bdd840
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/prometheus_telemetry/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ defmodule PrometheusTelemetry.Utils do
@moduledoc false

def app_loaded?(app_name) do
ensure_application_loaded?(app_name) and
Enum.any?(Application.loaded_applications(), fn {dep_name, _, _} -> dep_name === app_name end)
end

defp ensure_application_loaded?(app_name) do
case Application.ensure_loaded(app_name) do
:ok -> true
_ -> false
Expand Down

0 comments on commit 0bdd840

Please sign in to comment.