From dfa500f366f4344279cfe588a4749f514989c6c8 Mon Sep 17 00:00:00 2001 From: Matheus Lessa Date: Tue, 17 Oct 2017 15:48:25 -0200 Subject: [PATCH] just that small micro-optimisation suggested --- src/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console.c b/src/console.c index 66fd3e4..b39e117 100644 --- a/src/console.c +++ b/src/console.c @@ -2318,7 +2318,7 @@ static void tryReloadCode(Console* console, char* codeBuffer) static void cmdInjectCode(Console* console, const char* param, const char* name) { bool watch = strcmp(param, "-code-watch") == 0; - if(strcmp(param, "-code") == 0 || watch) + if(watch || strcmp(param, "-code") == 0) { bool loaded = loadFileIntoBuffer(console, &embed.file.code.data, name);