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: if res:
typename = 'machine' typename = 'machine'
return (typename, None, res.group(1)) return (typename, None, res.group(1))
else: res = bbclass_re.match(subpath)
res = bbclass_re.match(subpath) if res:
if res: typename = 'bbclass'
typename = 'bbclass' return (typename, None, res.group(1))
return (typename, None, res.group(1)) res = distro_conf_re.match(subpath)
res = distro_conf_re.match(subpath) if res:
if res: typename = 'distro'
typename = 'distro' return (typename, None, res.group(1))
return (typename, None, res.group(1))
if typename == 'recipe' or typename == 'bbappend': if typename == 'recipe' or typename == 'bbappend':
if subdir_start: if subdir_start: