diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-05-08 12:59:28 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-05-08 12:59:28 +0300 |
commit | 01a2c9fe1202f88f20a5acbc729b627ce0ac3c0a (patch) | |
tree | 4aba0e94650d1311ab5b2da0e74563b1bd02a876 /src/extauth.erl | |
parent | LOG_PATH macro should be of string type (diff) |
Add type specs for Module:opt_type/1
Diffstat (limited to 'src/extauth.erl')
-rw-r--r-- | src/extauth.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/extauth.erl b/src/extauth.erl index c6f25102..54f44953 100644 --- a/src/extauth.erl +++ b/src/extauth.erl @@ -154,6 +154,8 @@ encode(L) -> str:join(L, <<":">>). decode([0, 0]) -> false; decode([0, 1]) -> true. +-spec opt_type(extauth_instances) -> fun((pos_integer()) -> pos_integer()); + (atom()) -> [atom()]. opt_type(extauth_instances) -> fun (V) when is_integer(V), V > 0 -> V end; opt_type(_) -> [extauth_instances]. |