From 0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 7 Oct 2025 20:06:26 +0900 Subject: container/check: move absolute pathname This allows use of absolute pathname values without importing container. Signed-off-by: Ophestra --- internal/comp.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/comp.go') diff --git a/internal/comp.go b/internal/comp.go index 89dc0f85..28ee6224 100644 --- a/internal/comp.go +++ b/internal/comp.go @@ -6,11 +6,11 @@ var ( version = compPoison ) -// check validates string value set at compile time. -func check(s string) (string, bool) { return s, s != compPoison && s != "" } +// checkComp validates string value set at compile time. +func checkComp(s string) (string, bool) { return s, s != compPoison && s != "" } func Version() string { - if v, ok := check(version); ok { + if v, ok := checkComp(version); ok { return v } return "impure" -- cgit v1.3.1