mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
recipeparse: remove unnecessary else statement
Code clean up. Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com>
This commit is contained in:
parent
61845b7465
commit
b1375847d9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user