Explorar o código

cleanup: consistently use local variable instead of attribute

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Mike Edgar %!s(int64=10) %!d(string=hai) anos
pai
achega
e8ffa65e91
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      dulwich/client.py

+ 2 - 2
dulwich/client.py

@@ -478,8 +478,8 @@ class TraditionalGitClient(GitClient):
             if len(new_refs) == 0 and len(orig_new_refs):
             if len(new_refs) == 0 and len(orig_new_refs):
                 # NOOP - Original new refs filtered out by policy
                 # NOOP - Original new refs filtered out by policy
                 proto.write_pkt_line(None)
                 proto.write_pkt_line(None)
-                if self._report_status_parser is not None:
-                    self._report_status_parser.check()
+                if report_status_parser is not None:
+                    report_status_parser.check()
                 return old_refs
                 return old_refs
 
 
             (have, want) = self._handle_receive_pack_head(
             (have, want) = self._handle_receive_pack_head(