Revert "Replace goto" (goto is superior to throwing an exception in unexceptional codepaths)

This reverts commit f22f5b732b.
This commit is contained in:
zeromus 2020-10-01 14:11:41 -04:00
parent e31893fbf0
commit f363acd16a
1 changed files with 2 additions and 3 deletions

View File

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