mercurial/dirstate.py
changeset 50178 3c6546b149ed
parent 50177 2f60cd6442fd
child 50181 3dd7e54ff7f1
--- a/mercurial/dirstate.py	Wed Feb 22 01:08:25 2023 +0100
+++ b/mercurial/dirstate.py	Tue Feb 21 15:35:31 2023 +0100
@@ -316,14 +316,13 @@
     @propertycache
     def _map(self):
         """Return the dirstate contents (see documentation for dirstatemap)."""
-        self._map = self._mapcls(
+        return self._mapcls(
             self._ui,
             self._opener,
             self._root,
             self._nodeconstants,
             self._use_dirstate_v2,
         )
-        return self._map
 
     @property
     def _sparsematcher(self):