From 356436353b509d0b00ec24330e996636cc56fbdc Mon Sep 17 00:00:00 2001 From: Juan Facorro Date: Thu, 16 Oct 2014 11:37:47 -0300 Subject: [PATCH] [#74] Fixed elvis comments. --- examples/elastic-blog/src/blog.erl | 6 ++++-- examples/elastic-blog/src/blog_post.erl | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/elastic-blog/src/blog.erl b/examples/elastic-blog/src/blog.erl index 96803d1..7085ca0 100644 --- a/examples/elastic-blog/src/blog.erl +++ b/examples/elastic-blog/src/blog.erl @@ -55,11 +55,13 @@ start() -> %% @doc Paginates all authors, sorts by name. --spec find_all_authors(non_neg_integer(), non_neg_integer()) -> [blog_author:author()]. +-spec find_all_authors(non_neg_integer(), non_neg_integer()) -> + [blog_author:author()]. find_all_authors(Limit, Offset) -> sumo:find_all(blog_author, name, Limit, Offset). --spec find_authors_by_name(string(), non_neg_integer(), non_neg_integer()) -> [blog_author:author()]. +-spec find_authors_by_name(string(), non_neg_integer(), non_neg_integer()) -> + [blog_author:author()]. find_authors_by_name(Name, Limit, Offset) -> sumo:find_by(blog_author, [{name, Name}], Limit, Offset). diff --git a/examples/elastic-blog/src/blog_post.erl b/examples/elastic-blog/src/blog_post.erl index e32651d..a669d1c 100644 --- a/examples/elastic-blog/src/blog_post.erl +++ b/examples/elastic-blog/src/blog_post.erl @@ -123,7 +123,8 @@ sumo_schema() -> %% We don't have the extends module attribute in R16, so this was moved out from %% the old blog_post_repo in the example, we should allocate some time to create %% a proper parse transform for this. -% -spec total_posts(sumo:schema_name(), State ) -> {ok, {raw, non_neg_integer()}, State} | {ok, error, State}. +% -spec total_posts(sumo:schema_name(), State ) -> +% {ok, {raw, non_neg_integer()}, State} | {ok, error, State}. % count(DocName, State) -> % Sql = "SELECT COUNT(1) FROM `" ++ atom_to_list(DocName) ++ "`", % Result = sumo_repo_mysql:execute(Sql, State),