mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-04 07:21:14 -03:00
Replace a bunch of ASSERT_IS_MAIN_THREAD
Switch these to a new function parser.assert_can_execute(), in preparation for allowing execution off of the main thread.
This commit is contained in:
@@ -1133,7 +1133,6 @@ maybe_t<int> env_stack_impl_t::try_set_electric(const wcstring &key, const query
|
||||
/// Set a universal variable, inheriting as applicable from the given old variable.
|
||||
void env_stack_impl_t::set_universal(const wcstring &key, wcstring_list_t val,
|
||||
const query_t &query) {
|
||||
ASSERT_IS_MAIN_THREAD();
|
||||
auto oldvar = uvars()->get(key);
|
||||
// Resolve whether or not to export.
|
||||
bool exports = false;
|
||||
|
||||
Reference in New Issue
Block a user