From 89db8d4177220cff8ea80ef4fab0e92c2efb2241 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Laurent?= <francois.laurent@posteo.net>
Date: Tue, 24 Sep 2024 15:09:33 +0200
Subject: [PATCH] fix: version label was broken in the absence of a
 src/version.txt file

---
 src/GenieExtras.jl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/GenieExtras.jl b/src/GenieExtras.jl
index a46484b..53ca6eb 100644
--- a/src/GenieExtras.jl
+++ b/src/GenieExtras.jl
@@ -36,8 +36,8 @@ function footer()
         version = version[1:end-2]
     end
     versionfile = joinpath(@__DIR__, "version.txt")
-    version = if isfile(versionfile)
-        join((version, readchomp(versionfile)), "-")
+    if isfile(versionfile)
+        version = join((version, readchomp(versionfile)), "-")
     end
     tagurl = "https://gitlab.com/dbc-nyx/NyxUI.jl/-/tags"
     Html.footer("NyxUI.jl <a href=\"$tagurl\">v$version</a>")
-- 
GitLab