Replace goto
This commit is contained in:
parent
ac5d53b44e
commit
f22f5b732b
|
@ -179,7 +179,9 @@ namespace BizHawk.Client.EmuHawk
|
||||||
var names = FileSelectors.Select(f => f.Path).ToList();
|
var names = FileSelectors.Select(f => f.Path).ToList();
|
||||||
|
|
||||||
if (names.Count == 0)
|
if (names.Count == 0)
|
||||||
goto BAIL;
|
{
|
||||||
|
throw new Exception("No selectors");
|
||||||
|
}
|
||||||
|
|
||||||
var name = NameBox.Text;
|
var name = NameBox.Text;
|
||||||
|
|
||||||
|
@ -228,7 +230,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
//swallow exceptions, since this is just validation logic
|
//swallow exceptions, since this is just validation logic
|
||||||
}
|
}
|
||||||
|
|
||||||
BAIL:
|
|
||||||
_currentXml = null;
|
_currentXml = null;
|
||||||
SaveRunButton.Enabled = false;
|
SaveRunButton.Enabled = false;
|
||||||
SaveButton.Enabled = false;
|
SaveButton.Enabled = false;
|
||||||
|
|
Loading…
Reference in New Issue