recipeparse: remove unnecessary else statement

Code clean up.

Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com>
This commit is contained in:
Liam R. Howlett 2016-09-23 13:27:33 -04:00 committed by Paul Eggleton
parent 61845b7465
commit b1375847d9

View File

@ -134,15 +134,14 @@ def detect_file_type(path, subdir_start):
if res:
typename = 'machine'
return (typename, None, res.group(1))
else:
res = bbclass_re.match(subpath)
if res:
typename = 'bbclass'
return (typename, None, res.group(1))
res = distro_conf_re.match(subpath)
if res:
typename = 'distro'
return (typename, None, res.group(1))
res = bbclass_re.match(subpath)
if res:
typename = 'bbclass'
return (typename, None, res.group(1))
res = distro_conf_re.match(subpath)
if res:
typename = 'distro'
return (typename, None, res.group(1))
if typename == 'recipe' or typename == 'bbappend':
if subdir_start: