no need to do a else when there is a return at the end of the if. Unindent some code

This commit is contained in:
Yann Leboulanger 2007-05-22 16:09:14 +00:00
parent f2f0a6496a
commit 0f3071ed06
1 changed files with 66 additions and 68 deletions

View File

@ -2868,13 +2868,11 @@ class AccountCreationWizardWindow:
self.back_button.set_sensitive(True)
return
else:
widgets = self.get_widgets()
username = widgets['username_entry'].get_text().decode('utf-8')
if not username:
pritext = _('Invalid username')
sectext = _('You must provide a username to configure this account'
'.')
sectext = _('You must provide a username to configure this account.')
dialogs.ErrorDialog(pritext, sectext)
return
server = widgets['server_comboboxentry'].child.get_text().decode('utf-8')