e89c6179af
Another trivial cleanup. This is in preparation for next commit, that will expand on this if clause, and will make it a bit more complicated. Using a variable here makes it easier to read. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1866>