aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common_test/src')
-rw-r--r--lib/common_test/src/ct_suite_callback.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common_test/src/ct_suite_callback.erl b/lib/common_test/src/ct_suite_callback.erl
index ab5c005a43..124397b222 100644
--- a/lib/common_test/src/ct_suite_callback.erl
+++ b/lib/common_test/src/ct_suite_callback.erl
@@ -136,8 +136,8 @@ call([], Config, _Meta, CBs) ->
Config.
remove(Key,List) when is_list(List) ->
- [Conf || Conf <- List,
- element(1, Conf) =/= Key];
+ [Conf || Conf <- List, is_tuple(Conf) =:= false
+ orelse element(1, Conf) =/= Key];
remove(_, Else) ->
Else.