flawfinder: Simplify string check
This commit is contained in:
parent
1d9a870d77
commit
5a56f2667d
|
@ -156,7 +156,7 @@ def is_svn_diff(sLine):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def is_gnu_diff(sLine):
|
def is_gnu_diff(sLine):
|
||||||
if (sLine.find('--- ') == 0):
|
if sLine.startswith('--- '):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue