1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-07 12:25:31 +00:00

sip-provider: Remove duplicated check

init() already checked if CALLS_SIP_TEST was set,
no need to do it again in constructed()
This commit is contained in:
Evangelos Ribeiro Tzaras 2023-02-12 09:36:05 +01:00
parent 4d402d2f79
commit d790e35bc3

View file

@ -489,12 +489,6 @@ calls_sip_provider_constructed (GObject *object)
CallsSipProvider *self = CALLS_SIP_PROVIDER (object);
g_autoptr (GError) error = NULL;
const gchar *env_sip_test;
env_sip_test = g_getenv ("CALLS_SIP_TEST");
if (env_sip_test && env_sip_test[0] != '\0')
self->use_memory_backend = TRUE;
if (calls_sip_provider_init_sofia (self, &error)) {
if (!self->use_memory_backend) {
g_autoptr (GKeyFile) key_file = g_key_file_new ();
@ -643,6 +637,8 @@ calls_sip_provider_init (CallsSipProvider *self)
"Can not store credentials persistently!",
directory, err_save);
}
} else {
self->use_memory_backend = TRUE;
}
}