Mild refactoring of universal variables

This removes some unnecessary returns and other miscellaneous cleanup.
This commit is contained in:
ridiculousfish
2021-05-09 17:40:02 -07:00
parent c8d909b2b2
commit 6ab7945623
4 changed files with 51 additions and 65 deletions

View File

@@ -3795,10 +3795,7 @@ static void test_universal() {
env_universal_t uvars(UVARS_TEST_PATH);
callback_data_list_t callbacks;
bool loaded = uvars.initialize(callbacks);
if (!loaded) {
err(L"Failed to load universal variables");
}
uvars.initialize(callbacks);
for (int i = 0; i < threads; i++) {
for (int j = 0; j < UVARS_PER_THREAD; j++) {
const wcstring key = format_string(L"key_%d_%d", i, j);