##// END OF EJS Templates
fix: remove a never-true check for unset pattern in Fixer.affects()...
Martin von Zweigbergk -
r43492:96c4c6f3 default draft
parent child Browse files
Show More
@@ -845,9 +845,7 b' class Fixer(object):'
845
845
846 def affects(self, opts, fixctx, path):
846 def affects(self, opts, fixctx, path):
847 """Should this fixer run on the file at the given path and context?"""
847 """Should this fixer run on the file at the given path and context?"""
848 return self._pattern is not None and scmutil.match(
848 return scmutil.match(fixctx, [self._pattern], opts)(path)
849 fixctx, [self._pattern], opts
850 )(path)
851
849
852 def shouldoutputmetadata(self):
850 def shouldoutputmetadata(self):
853 """Should the stdout of this fixer start with JSON and a null byte?"""
851 """Should the stdout of this fixer start with JSON and a null byte?"""
General Comments 0
You need to be logged in to leave comments. Login now