[yocto] [layerindex-web][PATCH v2 11/12] recipeparse: remove unnecessary else statement.
Liam R. Howlett
Liam.Howlett at windriver.com
Fri Oct 7 08:57:20 PDT 2016
Code clean up.
Signed-off-by: Liam R. Howlett <Liam.Howlett at WindRiver.com>
---
layerindex/recipeparse.py | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/layerindex/recipeparse.py b/layerindex/recipeparse.py
index 91a083b..dd85bc3 100644
--- a/layerindex/recipeparse.py
+++ b/layerindex/recipeparse.py
@@ -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:
--
1.9.1
More information about the yocto
mailing list