From 156d958e77763428eee48e3433af4d7f5344f00c Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 25 Oct 2021 18:08:31 +0200 Subject: [PATCH] Move common instruction out of ifdef Both ifdef-branches return server_path. --- app/src/server.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/server.c b/app/src/server.c index 7c0d3d3f..4c1a43f5 100644 --- a/app/src/server.c +++ b/app/src/server.c @@ -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