2020-07-31 15:52:26 +00:00
|
|
|
defmodule Mobilizon.Service.Guards do
|
|
|
|
@moduledoc """
|
|
|
|
Various guards
|
|
|
|
"""
|
|
|
|
|
2020-08-03 15:34:50 +00:00
|
|
|
defguard is_valid_string?(value) when is_binary(value) and value != ""
|
|
|
|
|
|
|
|
defguard is_valid_list?(value) when is_list(value) and length(value) > 0
|
2020-07-31 15:52:26 +00:00
|
|
|
end
|