exp show: remove a useless function

The function `_raise_error_if_all_disabled` is copyed wrongly to this
place during sub command refactoring. It used to be used in `exp gc`,
can be deleted from this function.
This commit is contained in:
karajan1001
2021-12-27 20:35:07 +01:00
committed by David de la Iglesia Castro
parent 04e93da0bd
commit 98d7f785e9
-8
View File
@@ -517,14 +517,6 @@ def _format_json(item):
return encode_exception(item)
def _raise_error_if_all_disabled(**kwargs):
if not any(kwargs.values()):
raise InvalidArgumentError(
"Either of `-w|--workspace`, `-a|--all-branches`, `-T|--all-tags` "
"or `--all-commits` needs to be set."
)
class CmdExperimentsShow(CmdBase):
def run(self):
try: