posix: replace superfluous pass statement with explicit return
authorAugie Fackler <augie@google.com>
Sat, 30 Sep 2017 07:45:18 -0400
changeset 34383 ab687e06fe02
parent 34382 719a5c17e131
child 34384 b52f22d9afa5
posix: replace superfluous pass statement with explicit return
mercurial/posix.py
--- a/mercurial/posix.py	Sat Sep 30 07:45:51 2017 -0400
+++ b/mercurial/posix.py	Sat Sep 30 07:45:18 2017 -0400
@@ -300,7 +300,7 @@
 def checkosfilename(path):
     '''Check that the base-relative path is a valid filename on this platform.
     Returns None if the path is ok, or a UI string describing the problem.'''
-    pass # on posix platforms, every path is ok
+    return None # on posix platforms, every path is ok
 
 def setbinary(fd):
     pass