Run mix format and fix a credo check

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-09-09 09:35:50 +02:00
parent 4418275223
commit cc4a59ad1f
6 changed files with 10 additions and 12 deletions

View File

@@ -157,9 +157,7 @@ defmodule Mobilizon.ActorsTest do
event = insert(:event, organizer_actor: actor)
event_found_id =
Actors.get_actor_by_name_with_preload(
"#{actor.preferred_username}@#{actor.domain}"
).organized_events
Actors.get_actor_by_name_with_preload("#{actor.preferred_username}@#{actor.domain}").organized_events
|> hd
|> Map.get(:id)