From 99f9413519da54688561e7bca6b9e92900efff4f Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 6 Jun 2018 17:52:24 +0200 Subject: [PATCH] Credo checks Signed-off-by: Thomas Citharel --- lib/eventos_web/controllers/bot_controller.ex | 2 +- lib/service/activity_pub/activity_pub.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/eventos_web/controllers/bot_controller.ex b/lib/eventos_web/controllers/bot_controller.ex index 95119d421..5181a2744 100644 --- a/lib/eventos_web/controllers/bot_controller.ex +++ b/lib/eventos_web/controllers/bot_controller.ex @@ -14,7 +14,7 @@ defmodule EventosWeb.BotController do def create(conn, %{"bot" => bot_params}) do with user <- Guardian.Plug.current_resource, bot_params <- Map.put(bot_params, "user_id", user.id), - {:ok, actor } <- Actors.register_bot_account(%{name: bot_params["name"], summary: bot_params["summary"]}), + {:ok, actor} <- Actors.register_bot_account(%{name: bot_params["name"], summary: bot_params["summary"]}), bot_params <- Map.put(bot_params, "actor_id", actor.id), {:ok, %Bot{} = bot} <- Actors.create_bot(bot_params) do conn diff --git a/lib/service/activity_pub/activity_pub.ex b/lib/service/activity_pub/activity_pub.ex index c9f928169..bbbc456e1 100644 --- a/lib/service/activity_pub/activity_pub.ex +++ b/lib/service/activity_pub/activity_pub.ex @@ -306,7 +306,7 @@ defmodule Eventos.Service.ActivityPub do |> Enum.chunk_every(limit) |> Enum.at(page - 1) |> Enum.map(fn event -> - {:ok, activity } = ical_event_to_activity(event, actor, bot.source) + {:ok, activity} = ical_event_to_activity(event, actor, bot.source) activity end) {activities, length(ical_events)}