Remove unused pattern
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Tue, 8 Nov 2022 13:54:43 +0000 (13:54 +0000)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Tue, 8 Nov 2022 13:54:43 +0000 (13:54 +0000)
lib/pleroma/instances/instance.ex

index aed0cd2d0aa690c8245d4b799c027906e46f7ec0..27dbf7661a0fcd75033f09356109017e3b410e51 100644 (file)
@@ -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