Remove unreachable error clauses in form save helpers
This commit is contained in:
@@ -605,9 +605,6 @@ defmodule MusicLibraryWeb.Components.RecordForm do
|
|||||||
else
|
else
|
||||||
{:error, %Ecto.Changeset{} = changeset} ->
|
{:error, %Ecto.Changeset{} = changeset} ->
|
||||||
{:noreply, assign(socket, form: to_form(changeset))}
|
{:noreply, assign(socket, form: to_form(changeset))}
|
||||||
|
|
||||||
{:error, _reason} ->
|
|
||||||
{:noreply, put_toast(socket, :error, gettext("Failed to store cover image"))}
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -323,10 +323,6 @@ defmodule MusicLibraryWeb.ArtistLive.Form do
|
|||||||
else
|
else
|
||||||
{:error, %Ecto.Changeset{} = changeset} ->
|
{:error, %Ecto.Changeset{} = changeset} ->
|
||||||
{:noreply, assign(socket, form: to_form(changeset))}
|
{:noreply, assign(socket, form: to_form(changeset))}
|
||||||
|
|
||||||
{:error, _reason} ->
|
|
||||||
put_toast!(:error, gettext("Failed to store artist image"))
|
|
||||||
{:noreply, socket}
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1953,16 +1953,6 @@ msgstr ""
|
|||||||
msgid "Refresh Last.fm data"
|
msgid "Refresh Last.fm data"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/artist_live/form.ex
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Failed to store artist image"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/music_library_web/components/record_form.ex
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Failed to store cover image"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/music_library_web/live_helpers/record_actions.ex
|
#: lib/music_library_web/live_helpers/record_actions.ex
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Colors extracted"
|
msgid "Colors extracted"
|
||||||
|
|||||||
@@ -1953,16 +1953,6 @@ msgstr ""
|
|||||||
msgid "Refresh Last.fm data"
|
msgid "Refresh Last.fm data"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/artist_live/form.ex
|
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
|
||||||
msgid "Failed to store artist image"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/music_library_web/components/record_form.ex
|
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
|
||||||
msgid "Failed to store cover image"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/music_library_web/live_helpers/record_actions.ex
|
#: lib/music_library_web/live_helpers/record_actions.ex
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Colors extracted"
|
msgid "Colors extracted"
|
||||||
|
|||||||
Reference in New Issue
Block a user