Skip to content

Commit abb125e

Browse files
authored
warnings fixed (#92)
* config from use to import * fixed Supervisor.Spec.worker/2 is deprecated warning * remove duplicate behaviour
1 parent 7dbe1d0 commit abb125e

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

config/config.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
use Mix.Config
1+
import Config
22

33
import_config "#{Mix.env()}.exs"

config/dev.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
use Mix.Config
1+
import Config

config/test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use Mix.Config
1+
import Config
22

33
config :ex_audit, ExAudit.Test.Repo,
44
adapter: Ecto.Adapters.Postgres,

lib/ex_audit.ex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ defmodule ExAudit do
22
use Application
33

44
def start(_, _) do
5-
import Supervisor.Spec
6-
75
children = [
8-
worker(ExAudit.CustomData, [])
6+
ExAudit.CustomData
97
]
108

119
opts = [strategy: :one_for_one, name: ExAudit.Supervisor]

lib/tracking/custom_data.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule ExAudit.CustomData do
55
ETS table that stores custom data for pids
66
"""
77

8-
def start_link() do
8+
def start_link([]) do
99
GenServer.start_link(__MODULE__, nil, name: __MODULE__)
1010
end
1111

0 commit comments

Comments
 (0)