Skip to content

Commit

Permalink
LITE-29138 Fix bool method for ResourceSe
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandra Ovchinnikova committed Dec 1, 2023
1 parent e6ba1ce commit 7a866db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions connect/client/models/resourceset.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,9 @@ def __iter__(self):
return iter(self._results)

def __bool__(self):
self._fetch_all()
return bool(self._results)
copy = self._copy()
copy._fetch_all()
return bool(copy._results)

def __getitem__(self, key): # noqa: CCR001
self._validate_key(key)
Expand Down

0 comments on commit 7a866db

Please sign in to comment.