lib/mix/tasks/relay_{un,}follow.ex: Support status reply of Relay.{un,}follow
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 10 Nov 2018 13:55:32 +0000 (14:55 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 17 Nov 2018 19:25:56 +0000 (20:25 +0100)
lib/mix/tasks/relay_follow.ex
lib/mix/tasks/relay_unfollow.ex

index 4d57c6bca74d7d28574ba4be7fa2878d5d2ef68e..61280d0848721993f18b41c0f76ef7a9b38e10c8 100644 (file)
@@ -14,7 +14,7 @@ defmodule Mix.Tasks.RelayFollow do
   def run([target]) do
     Mix.Task.run("app.start")
 
-    :ok = Relay.follow(target)
+    _status = Relay.follow(target)
 
     # put this task to sleep to allow the genserver to push out the messages
     :timer.sleep(500)
index bd69fd8a094d4eb6a2d7e670580bc317b97155e7..6aa67590b0977c69941918456520c9e56c71bc0d 100644 (file)
@@ -13,7 +13,7 @@ defmodule Mix.Tasks.RelayUnfollow do
   def run([target]) do
     Mix.Task.run("app.start")
 
-    :ok = Relay.unfollow(target)
+    _status = Relay.unfollow(target)
 
     # put this task to sleep to allow the genserver to push out the messages
     :timer.sleep(500)