flawfinder: Simplify string check

This commit is contained in:
David A. Wheeler 2014-07-12 22:24:02 -04:00
parent 1d9a870d77
commit 5a56f2667d
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ def is_svn_diff(sLine):
return False
def is_gnu_diff(sLine):
if (sLine.find('--- ') == 0):
if sLine.startswith('--- '):
return True
return False