Move common instruction out of ifdef

Both ifdef-branches return server_path.
This commit is contained in:
Romain Vimont 2021-10-25 18:08:31 +02:00
parent 7229e3cce0
commit 156d958e77

View file

@ -47,8 +47,6 @@ get_server_path(void) {
LOGE("Could not allocate memory");
return NULL;
}
// the absolute path is hardcoded
return server_path;
#else
char *server_path = get_local_file_path(SERVER_FILENAME);
if (!server_path) {
@ -58,8 +56,9 @@ get_server_path(void) {
}
LOGD("Using server (portable): %s", server_path);
return server_path;
#endif
return server_path;
}
static bool