From bbae94ddf3844f0c5b7eabb97235e5dff672ff6f Mon Sep 17 00:00:00 2001 From: Phantasm Date: Sun, 19 Jul 2026 22:15:37 +0200 Subject: [PATCH] Revert "Only warn about bad clear_config usage if warned usage is met" What was I even thinking when writing that? This reverts commit 3790e6786cce376cbabf2588beed27d0daf9c55c. --- test/support/helpers.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/support/helpers.ex b/test/support/helpers.ex index 259180e8f..7fa6c31a4 100644 --- a/test/support/helpers.ex +++ b/test/support/helpers.ex @@ -73,8 +73,7 @@ defmodule Pleroma.Tests.Helpers do defmacro clear_config(config_path, temp_setting) do # NOTE: `clear_config([section, key], value)` != `clear_config([section], key: value)` (!) # Displaying a warning to prevent unintentional clearing of all but one keys in section - if is_list(config_path) and length(config_path) == 1 and Keyword.keyword?(temp_setting) and - Keyword.keys(temp_setting) == [:key] do + if Keyword.keyword?(temp_setting) and length(temp_setting) == 1 do Logger.warning( "Please change `clear_config([section], key: value)` to `clear_config([section, key], value)`" )