FollowingRelationship: Remove meaningless change
authorlain <lain@soykaf.club>
Wed, 3 Jun 2020 12:40:44 +0000 (14:40 +0200)
committerlain <lain@soykaf.club>
Wed, 3 Jun 2020 12:40:44 +0000 (14:40 +0200)
lib/pleroma/following_relationship.ex

index 0343a20d44b5cf1b6a939cf5eff76c79e4418674..3a3082e728037e265bc56a55883f8df7f5e36fe9 100644 (file)
@@ -62,13 +62,10 @@ defmodule Pleroma.FollowingRelationship do
         follow(follower, following, state)
 
       following_relationship ->
-        {:ok, relationship} =
-          following_relationship
-          |> cast(%{state: state}, [:state])
-          |> validate_required([:state])
-          |> Repo.update()
-
-        {:ok, relationship}
+        following_relationship
+        |> cast(%{state: state}, [:state])
+        |> validate_required([:state])
+        |> Repo.update()
     end
   end