Skip to content

Commit

Permalink
don't include the config callback yet
Browse files Browse the repository at this point in the history
  • Loading branch information
tompave committed Aug 15, 2024
1 parent 6c4042d commit fd343d5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions lib/fun_with_flags.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,4 @@ defmodule FunWithFlags do
"""

use FunWithFlags.EntryPoint

@impl true
def config do
{:ok, []}
end
end
10 changes: 0 additions & 10 deletions lib/fun_with_flags/entry_point.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ defmodule FunWithFlags.EntryPoint do
@doc false
defmacro __using__(opts) do
quote bind_quoted: [opts: opts] do

Check warning on line 45 in lib/fun_with_flags/entry_point.ex

View workflow job for this annotation

GitHub Actions / Credo

Avoid long quote blocks.
@behaviour FunWithFlags.EntryPoint

alias FunWithFlags.{Config, Flag, Gate}

@store FunWithFlags.Config.store_module_determined_at_compile_time()
Expand Down Expand Up @@ -543,12 +541,4 @@ defmodule FunWithFlags.EntryPoint do

end
end

@doc """
An entry point must define this callback to provide its configuration.
This function is supposed to retrieve any runtime config (e.g. ENV vars) and
return it as a keyword list.
"""
@callback config() :: {:ok, Keyword.t()}
end

0 comments on commit fd343d5

Please sign in to comment.