Don't need else after return.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34772 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-07-05 22:30:54 +00:00
parent 9211fe72c1
commit d250f9a7c2

View File

@ -279,7 +279,6 @@ def revert_flex_inset(document, name, LaTeXname, position):
i = find_token(document.body, '\\begin_inset Flex ' + name, position) i = find_token(document.body, '\\begin_inset Flex ' + name, position)
if i == -1: if i == -1:
return return
else:
z = find_end_of_inset(document.body, i) z = find_end_of_inset(document.body, i)
if z == -1: if z == -1:
document.warning("Malformed LyX document: Can't find end of Flex " + name + " inset.") document.warning("Malformed LyX document: Can't find end of Flex " + name + " inset.")