From 0681a26dbb58b420105275fdaca11ec627257837 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Tue, 8 Nov 2022 13:54:43 +0000 Subject: [PATCH] Remove unused pattern --- lib/pleroma/instances/instance.ex | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/pleroma/instances/instance.ex b/lib/pleroma/instances/instance.ex index aed0cd2d0..27dbf7661 100644 --- a/lib/pleroma/instances/instance.ex +++ b/lib/pleroma/instances/instance.ex @@ -193,15 +193,14 @@ defmodule Pleroma.Instances.Instance do Logger.info("Creating metadata for #{host}") - {:ok, instance} = - %Instance{} - |> changeset(%{ - host: host, - favicon: favicon, - nodeinfo: nodeinfo, - metadata_updated_at: NaiveDateTime.utc_now() - }) - |> Repo.insert() + %Instance{} + |> changeset(%{ + host: host, + favicon: favicon, + nodeinfo: nodeinfo, + metadata_updated_at: NaiveDateTime.utc_now() + }) + |> Repo.insert() end end