Skip to content

Commit 65c039c

Browse files
committed
No need to guard when creating ets table
1 parent 5759f89 commit 65c039c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/sentry/opentelemetry/span_storage.ex

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ defmodule Sentry.OpenTelemetry.SpanStorage do
1818
table_name = Keyword.get(opts, :table_name, default_table_name())
1919
cleanup_interval = Keyword.get(opts, :cleanup_interval, @cleanup_interval)
2020

21-
if :ets.whereis(table_name) == :undefined do
22-
:ets.new(table_name, [:named_table, :public, :bag])
23-
end
21+
:ets.new(table_name, [:named_table, :public, :bag])
2422

2523
schedule_cleanup(cleanup_interval)
2624

0 commit comments

Comments
 (0)