From bc31e2f0c2740a873fe24b4b11fbbf4b1bda892d Mon Sep 17 00:00:00 2001 From: rustra Date: Sun, 26 Jan 2020 21:53:04 +0100 Subject: [PATCH] Fix `mix format` --- lib/mobilizon/addresses/address.ex | 3 ++- test/federation/web_finger/web_finger_test.exs | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/mobilizon/addresses/address.ex b/lib/mobilizon/addresses/address.ex index ce2a7dd4d..c7a4f2fdb 100644 --- a/lib/mobilizon/addresses/address.ex +++ b/lib/mobilizon/addresses/address.ex @@ -65,7 +65,8 @@ defmodule Mobilizon.Addresses.Address do @spec set_url(Ecto.Changeset.t()) :: Ecto.Changeset.t() defp set_url(%Ecto.Changeset{changes: changes} = changeset) do - url = Map.get(changes, :url, "#{Mobilizon.Web.Endpoint.url()}/address/#{Ecto.UUID.generate()}") + url = + Map.get(changes, :url, "#{Mobilizon.Web.Endpoint.url()}/address/#{Ecto.UUID.generate()}") put_change(changeset, :url, url) end diff --git a/test/federation/web_finger/web_finger_test.exs b/test/federation/web_finger/web_finger_test.exs index ef786b5d1..a995c4d39 100644 --- a/test/federation/web_finger/web_finger_test.exs +++ b/test/federation/web_finger/web_finger_test.exs @@ -33,7 +33,10 @@ defmodule Mobilizon.Federation.WebFingerTest do actor = insert(:actor) {:ok, result} = - WebFinger.webfinger("#{actor.preferred_username}@#{Mobilizon.Web.Endpoint.host()}", "JSON") + WebFinger.webfinger( + "#{actor.preferred_username}@#{Mobilizon.Web.Endpoint.host()}", + "JSON" + ) assert is_map(result) end