From 8ff49f7befbb795f6cb79c2aabce988191000fb3 Mon Sep 17 00:00:00 2001 From: Josh Kalderimis Date: Fri, 8 Dec 2023 23:14:03 +1300 Subject: [PATCH] mix format is my best friend --- config/runtime.exs | 6 ++---- lib/nerves_hub_web/plugs/configure_uploads.ex | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index 53255633e..72308a5a1 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -28,11 +28,9 @@ config :nerves_hub, dns_cluster_query: dns_cluster_query # Allow for all environments to override the database url if env!("DATABASE_URL", :string!, nil) do - config :nerves_hub, NervesHub.Repo, - url: env!("DATABASE_URL", :string!) + config :nerves_hub, NervesHub.Repo, url: env!("DATABASE_URL", :string!) - config :nerves_hub, NervesHub.ObanRepo, - url: env!("DATABASE_URL", :string!) + config :nerves_hub, NervesHub.ObanRepo, url: env!("DATABASE_URL", :string!) end config :nerves_hub, diff --git a/lib/nerves_hub_web/plugs/configure_uploads.ex b/lib/nerves_hub_web/plugs/configure_uploads.ex index 49a877d36..165f59d09 100644 --- a/lib/nerves_hub_web/plugs/configure_uploads.ex +++ b/lib/nerves_hub_web/plugs/configure_uploads.ex @@ -4,7 +4,6 @@ defmodule NervesHubWeb.Plugs.ConfigureUploads do def init(_opts), do: [] def call(conn, _opts) do - if local_uploads?() do conn |> NervesHubWeb.Plugs.FileUpload.call([])