Various typespec and compilation improvements
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -25,7 +25,7 @@ defmodule Mix.Tasks.Mobilizon.Actors.Utils do
|
||||
end
|
||||
|
||||
# Profile from name
|
||||
@spec username_and_name(String.t() | nil, String.t() | nil) :: String.t()
|
||||
@spec username_and_name(String.t() | nil, String.t() | nil) :: {String.t(), String.t()}
|
||||
def username_and_name(nil, profile_name) do
|
||||
{generate_username(profile_name), profile_name}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user