mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
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:
committed by
David de la Iglesia Castro
parent
04e93da0bd
commit
98d7f785e9
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user