##// END OF EJS Templates
cleanup: return directly instead of assigning variable
Manuel Jacob -
r50208:5c01ca5f default
parent child Browse files
Show More
@@ -523,12 +523,11 b' def _readrequires(vfs, allowmissing):'
523 523 # which means very old repositories may not have one. We assume
524 524 # a missing file translates to no requirements.
525 525 try:
526 requirements = set(vfs.read(b'requires').splitlines())
526 return set(vfs.read(b'requires').splitlines())
527 527 except FileNotFoundError:
528 528 if not allowmissing:
529 529 raise
530 requirements = set()
531 return requirements
530 return set()
532 531
533 532
534 533 def makelocalrepository(baseui, path, intents=None):
General Comments 0
You need to be logged in to leave comments. Login now