From 5249744d0a3eefce49fd80810b6d3a4cc8528770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 25 Jun 2024 11:19:59 +0200 Subject: [PATCH] Manager: variable replacement, remove warning when no variables exist It's perfectly fine to run Flamenco without any variables, so do not log a warning when this situation occurs. --- internal/manager/config/variables.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/internal/manager/config/variables.go b/internal/manager/config/variables.go index 3665d5c9..858c40a2 100644 --- a/internal/manager/config/variables.go +++ b/internal/manager/config/variables.go @@ -39,15 +39,6 @@ func (c *Conf) NewVariableToValueConverter(audience VariableAudience, platform V // NewVariableExpander returns a new VariableExpander for the given audience & platform. func (c *Conf) NewVariableExpander(audience VariableAudience, platform VariablePlatform) *VariableExpander { - // Get the variables for the given audience & platform. - varsForPlatform := c.getVariables(audience, platform) - if len(varsForPlatform) == 0 { - log.Warn(). - Str("audience", string(audience)). - Str("platform", string(platform)). - Msg("no variables defined for this platform given this audience") - } - return &VariableExpander{ oneWayVars: varsForPlatform, managerTwoWayVars: c.GetTwoWayVariables(audience, c.currentGOOS),