From: Haelwenn (lanodan) Monnier Date: Tue, 5 Mar 2019 01:30:19 +0000 (+0100) Subject: [Credo] Fix the warnings X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=6c8743d0c00e5bb6edffced4b60d3802004f9dc4;p=akkoma [Credo] Fix the warnings --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 187381af7..6c86097ad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,4 +42,4 @@ unit-testing: analysis: stage: analysis script: - - mix credo list + - mix credo list --only=warnings diff --git a/lib/pleroma/web/federator/federator.ex b/lib/pleroma/web/federator/federator.ex index fbfe97dbc..b1fabf0e9 100644 --- a/lib/pleroma/web/federator/federator.ex +++ b/lib/pleroma/web/federator/federator.ex @@ -24,7 +24,7 @@ defmodule Pleroma.Web.Federator do def init() do # 1 minute - Process.sleep(1000 * 60 * 1) + Process.sleep(1000 * 60) refresh_subscriptions() end diff --git a/test/web/twitter_api/twitter_api_controller_test.exs b/test/web/twitter_api/twitter_api_controller_test.exs index ce0812308..ec4d07f17 100644 --- a/test/web/twitter_api/twitter_api_controller_test.exs +++ b/test/web/twitter_api/twitter_api_controller_test.exs @@ -490,7 +490,7 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do response = json_response(conn, 200) - assert length(response) == 0 + assert Enum.empty?(response) end end