aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-06-03 14:40:44 +0200
committerlain <lain@soykaf.club>2020-06-03 14:40:44 +0200
commit903955b189561d3a95d5955feda723999078b894 (patch)
treef6d42e0d1da2ddc2e9c9200a42d67cbe1084d27f /lib
parent7b79871e9721dca9b134598c182df890b909047c (diff)
downloadpleroma-903955b189561d3a95d5955feda723999078b894.tar.gz
FollowingRelationship: Remove meaningless change
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/following_relationship.ex11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/pleroma/following_relationship.ex b/lib/pleroma/following_relationship.ex
index 0343a20d4..3a3082e72 100644
--- a/lib/pleroma/following_relationship.ex
+++ b/lib/pleroma/following_relationship.ex
@@ -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