fix blank lines added/removed

This commit is contained in:
julius 2022-03-22 15:07:11 -07:00
parent a4f81bcd3a
commit 615be654cb
2 changed files with 1 additions and 1 deletions

View File

@ -209,6 +209,7 @@ class CommandCursor(Generic[_DocumentType]):
"""
if len(self.__data) or self.__killed:
return len(self.__data)
if self.__id: # Get More
dbname, collname = self.__ns.split(".", 1)
read_pref = self.__collection._read_preference_for(self.session)

View File

@ -472,7 +472,6 @@ class _GetMore(object):
def as_command(self, sock_info):
"""Return a getMore command document for this query."""
# See _Query.as_command for an explanation of this caching.
if self._as_command is not None:
return self._as_command