cppcheck: check very ugly if code checking for configuration mode

This commit is contained in:
fedepell 2016-10-27 07:37:46 +02:00 committed by ita1024
parent c6ebd2547c
commit 655217384a
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ def configure(conf):
@TaskGen.feature('c')
@TaskGen.feature('cxx')
def cppcheck_execute(self):
if hasattr(self.bld, 'conf') == True:
if hasattr(self.bld, 'conf'):
return
if len(self.env.CPPCHECK_SKIP) or Options.options.cppcheck_skip:
return