[#3213] Code formatting fix.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Fri, 12 Mar 2021 09:25:18 +0000 (12:25 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Fri, 12 Mar 2021 09:25:18 +0000 (12:25 +0300)
lib/pleroma/migrators/support/base_migrator_state.ex

index 69724ae79b722d86e6ccf3fa0935ec25f06f9538..b698587f2d4999047535eeabed3ef56c4b113f1c 100644 (file)
@@ -98,7 +98,8 @@ defmodule Pleroma.Migrators.Support.BaseMigratorState 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