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:
parent
f2f0a6496a
commit
0f3071ed06
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue