From f7be70ee73308f1fdbca7f5deee8cc2364e7f544 Mon Sep 17 00:00:00 2001 From: Ashish Sharma <94269501+ashishdock@users.noreply.github.com> Date: Sat, 8 Apr 2023 09:39:38 +0530 Subject: [PATCH] Validator bug fix, previously results in error: '[Validator] unknown lang parameter'. Condition correction. Bug fixed. It works now. --- module/validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/validate.go b/module/validate.go index d54ff4882..7524b7bcf 100644 --- a/module/validate.go +++ b/module/validate.go @@ -44,7 +44,7 @@ func (m *Module) Execute(targets map[string]pgs.File, pkgs map[string]pgs.Packag if lang == "" { lang = langParamValue m.Assert(lang != "", "`lang` parameter must be set") - } else if langParamValue != "" { + } else if langParamValue != "" && langParamValue != lang { m.Fail("unknown `lang` parameter") }