gpui: move Option -> Result conversion out of closure in App::update_window_id (#37624)
Jakub Konka
created
Doesn't fix anything, but it seems that we do not need to assert and
convert into an error until after the closure run to completion,
especially since this is the only error we throw.
Release Notes:
- N/A