[Credo] Fix the warnings
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 5 Mar 2019 01:30:19 +0000 (02:30 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Wed, 13 Mar 2019 03:17:30 +0000 (04:17 +0100)
.gitlab-ci.yml
lib/pleroma/web/federator/federator.ex
test/web/twitter_api/twitter_api_controller_test.exs

index 187381af793ae56373f2efed717f6fe72466c751..6c86097ad7a4791014c916202fb7d5dc9cc892b8 100644 (file)
@@ -42,4 +42,4 @@ unit-testing:
 analysis:
   stage: analysis
   script:
-    - mix credo list
+    - mix credo list --only=warnings
index fbfe97dbc7a79640071cfd2de5e6496b6fe4c762..b1fabf0e9c2ce760d8a27b980c97e7602f91c3ab 100644 (file)
@@ -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
 
index ce0812308ac5c80cb0a1015c6dde784d4682fcf4..ec4d07f1737ca69fd005a6a04f75711cdbfc2609 100644 (file)
@@ -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