Skip to content

Commit

Permalink
fix credo
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiemontese committed Apr 18, 2024
1 parent c287099 commit 8b543e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/instrumentation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -222,5 +222,5 @@ defmodule OpentelemetryAbsinthe.Instrumentation do
defp set_status(:ok), do: :ok
defp set_status(:error), do: Tracer.set_status(OpenTelemetry.status(:error, ""))

defp telemetry_provider(), do: Application.get_env(:opentelemetry_absinthe, :telemetry_provider, :telemetry)
defp telemetry_provider, do: Application.get_env(:opentelemetry_absinthe, :telemetry_provider, :telemetry)
end
12 changes: 3 additions & 9 deletions test/event_type_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,9 @@ defmodule OpentelemetryAbsintheTest.EventTypeTest.TelemetryProvider do
Agent.start_link(fn -> 0 end, name: @me)
end

def count() do
Agent.get(@me, & &1)
end
def count, do: Agent.get(@me, & &1)

defp increment() do
Agent.update(@me, &(&1 + 1))
end
defp increment, do: Agent.update(@me, &(&1 + 1))

def attach(_, _, _, _) do
increment()
end
def attach(_, _, _, _), do: increment()
end

0 comments on commit 8b543e0

Please sign in to comment.