diff --git a/generic_config_updater/patch_sorter.py b/generic_config_updater/patch_sorter.py index 829c3c2b6..976201bd1 100644 --- a/generic_config_updater/patch_sorter.py +++ b/generic_config_updater/patch_sorter.py @@ -1302,7 +1302,7 @@ def _traverse_current(self, ptr, current_tokens): yield move def _traverse_current_list(self, ptr, current_tokens): - if len(ptr) == 0: + if len(ptr) <= 1: yield JsonMove(self.diff, OperationType.REMOVE, current_tokens) return