Refactor PyLint "inconsistent-return-statements"

This commit is contained in:
Ivan Kravets committed 2017-12-15 22:16:37 +02:00
1 parent bff590e207
commit 42fb589369
14 files changed
+48 -24

No files matched your search

+1 -1
View File
@@ -693,7 +693,7 @@ def GetLibBuilders(env): # pylint: disable=too-many-branches
if lb.name in env.get("LIB_IGNORE", []):
if verbose:
sys.stderr.write("Ignored library %s\n" % lb.path)
return
return None
if compat_mode > 1 and not lb.is_platforms_compatible(
env['PIOPLATFORM']):
if verbose:
+1 -1
View File
@@ -50,7 +50,7 @@ class InoToCPPConverter(object):
def convert(self, nodes):
contents = self.merge(nodes)
if not contents:
return
return None
return self.process(contents)
def merge(self, nodes):
+1 -1
View File
@@ -72,7 +72,7 @@ def exists(_):
def generate(env):
if system() != "Windows":
return
return None
env.Replace(_long_sources_hook=long_sources_hook)
env.Replace(_long_incflags_hook=long_incflags_hook)