1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-18 02:49:18 +00:00

[#3213] Code formatting fix.

This commit is contained in:
Ivan Tashkinov 2021-03-12 12:25:18 +03:00
parent 3edf45021e
commit cb73456609

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