mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 22:48:36 +08:00
Remove write-only assignments from autload.cpp
This commit is contained in:
parent
53355885c8
commit
20cdcfadac
|
@ -134,11 +134,10 @@ autoload_function_t *autoload_t::get_autoloaded_function_with_creation(const wcs
|
|||
ASSERT_IS_LOCKED(lock);
|
||||
autoload_function_t *func = this->get(cmd);
|
||||
if (!func) {
|
||||
bool added;
|
||||
if (allow_eviction) {
|
||||
added = this->insert(cmd, autoload_function_t(false));
|
||||
this->insert(cmd, autoload_function_t(false));
|
||||
} else {
|
||||
added = this->insert_no_eviction(cmd, autoload_function_t(false));
|
||||
this->insert_no_eviction(cmd, autoload_function_t(false));
|
||||
}
|
||||
func = this->get(cmd);
|
||||
assert(func);
|
||||
|
|
Loading…
Reference in New Issue
Block a user