提交 b88497a5 编写于 作者: L Lukáš Doktor

avocado.core.tree: Remove useless code

path_parent returns parent, the extra return won't affect the result.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 044db9dc
......@@ -512,8 +512,6 @@ def path_parent(path):
:return: the parent path as string.
"""
parent = path.rpartition('/')[0]
if parent == '':
return ''
return parent
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册