Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonFZ committed Dec 7, 2022
1 parent 05a9266 commit b6a3a9b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions zninit/descriptor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ def get_descriptors(
a list of the found descriptor objects
"""
if descriptor is None:
return []
if self is None and cls is None:
raise ValueError("Either self or cls must not be None")
if self is not None and cls is not None:
Expand Down

0 comments on commit b6a3a9b

Please sign in to comment.