[#3213] Code formatting fix.
This commit is contained in:
parent
3edf45021e
commit
cb73456609
1 changed files with 2 additions and 1 deletions
|
@ -98,7 +98,8 @@ defmodule Pleroma.Migrators.Support.BaseMigratorState do
|
||||||
defp persist_non_data_change(:state, value) do
|
defp persist_non_data_change(:state, value) do
|
||||||
with true <- get_data_key(:state) != value,
|
with true <- get_data_key(:state) != value,
|
||||||
true <- value in Pleroma.DataMigration.State.__valid_values__(),
|
true <- value in Pleroma.DataMigration.State.__valid_values__(),
|
||||||
%{data_migration_id: data_migration_id} when not is_nil(data_migration_id) <- state() do
|
%{data_migration_id: data_migration_id} when not is_nil(data_migration_id) <-
|
||||||
|
state() do
|
||||||
DataMigration.update_one_by_id(data_migration_id, state: value)
|
DataMigration.update_one_by_id(data_migration_id, state: value)
|
||||||
else
|
else
|
||||||
false -> :ok
|
false -> :ok
|
||||||
|
|
Loading…
Reference in a new issue