From 2d246f61dd75bcef3ca15dc30cbe0b399c9f6e2c Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Sun, 9 Sep 2018 09:59:08 +0300 Subject: Fix some dialyzer warnings --- src/rest.erl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/rest.erl') diff --git a/src/rest.erl b/src/rest.erl index 6e48f0774..16fa20eb0 100644 --- a/src/rest.erl +++ b/src/rest.erl @@ -219,9 +219,7 @@ url(Server, Path, Params) -> url(Url, Custom++Params) end. --spec opt_type(ext_api_http_pool_size) -> fun((pos_integer()) -> pos_integer()); - (ext_api_url) -> fun((binary()) -> binary()); - (atom()) -> [atom()]. +-spec opt_type(atom()) -> fun((any()) -> any()) | [atom()]. opt_type(ext_api_http_pool_size) -> fun (X) when is_integer(X), X > 0 -> X end; opt_type(ext_api_url) -> -- cgit v1.2.3