[#3213] Code formatting fix.

This commit is contained in:
Ivan Tashkinov 2021-03-12 12:25:18 +03:00
parent 3edf45021e
commit cb73456609
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ def increment_data_key(key, increment \\ 1) do
defp persist_non_data_change(:state, value) do
with true <- get_data_key(:state) != value,
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)
else
false -> :ok