Skip to content

Commit 9f39163

Browse files
committed
fix(front): correct typespecs for feature enabled plug
1 parent 97b6e55 commit 9f39163

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

front/lib/front_web/plugs/feature_enabled.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
defmodule FrontWeb.Plugs.FeatureEnabled do
2+
@behaviour Plug
23
alias Front.Auth
34

4-
@type feature_name :: [String.t() | :atom]
5+
@type feature_name :: atom()
56

67
@nil_uuid "00000000-0000-0000-0000-000000000000"
78

9+
@impl true
810
def init(features), do: features
911

12+
@impl true
1013
def call(conn, features) do
1114
enabled = feature_enabled?(conn, features) or is_insider?(conn)
1215

0 commit comments

Comments
 (0)