summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2024-02-10 01:08:22 +0100
committerJulien Dessaux2024-03-07 00:58:30 +0100
commit325f6e2130fab68b7b15426fc15d8739deb009d7 (patch)
tree8ce0d48955437e7bc1f63dac40014d159f286cb8
parentchore(gonf): first draft of the gonf lib with commands, files, packages and v... (diff)
downloadgonf-325f6e2130fab68b7b15426fc15d8739deb009d7.tar.gz
gonf-325f6e2130fab68b7b15426fc15d8739deb009d7.tar.bz2
gonf-325f6e2130fab68b7b15426fc15d8739deb009d7.zip
fix(variables): fixed variable return value on error
-rw-r--r--gonf/variables.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gonf/variables.go b/gonf/variables.go
index 3c365ae..e6c845d 100644
--- a/gonf/variables.go
+++ b/gonf/variables.go
@@ -52,6 +52,6 @@ func getVariable(name string) string {
return v.value.String()
} else {
slog.Error("undefined variable or default", "name", name)
- return name
+ return ""
}
}