From 79bf12bd235a5ffafa729388b23cdf1b12cbbd42 Mon Sep 17 00:00:00 2001 From: Damian Debkowski Date: Fri, 20 Sep 2024 13:29:26 -0700 Subject: [PATCH] fix(cmd): resolve make gen issue (#5124) --- internal/cmd/base/servers.go | 8 +++----- internal/cmd/config/config.go | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/internal/cmd/base/servers.go b/internal/cmd/base/servers.go index 24bf55fa0e..b5392a53b1 100644 --- a/internal/cmd/base/servers.go +++ b/internal/cmd/base/servers.go @@ -58,11 +58,9 @@ const ( WorkerAuthReqFile = "auth_request_token" ) -var ( - // This regular expression is used to find all instances of square brackets within a string. - // This regular expression is used to remove the square brackets from an IPv6 address. - squareBrackets = regexp.MustCompile("\\[|\\]") -) +// This regular expression is used to find all instances of square brackets within a string. +// This regular expression is used to remove the square brackets from an IPv6 address. +var squareBrackets = regexp.MustCompile("\\[|\\]") func init() { metric.InitializeBuildInfo(prometheus.DefaultRegisterer) diff --git a/internal/cmd/config/config.go b/internal/cmd/config/config.go index 58781ee252..ab1c2d3a94 100644 --- a/internal/cmd/config/config.go +++ b/internal/cmd/config/config.go @@ -133,11 +133,9 @@ kms "aead" { defaultCsp = "default-src 'none'; script-src 'self' 'wasm-unsafe-eval'; frame-src 'self'; font-src 'self'; connect-src 'self'; img-src 'self' data:; style-src 'self'; media-src 'self'; manifest-src 'self'; style-src-attr 'self'; frame-ancestors 'self'" ) -var ( - // This regular expression is used to find all instances of square brackets within a string. - // This regular expression is used to remove the square brackets from an IPv6 address. - squareBrackets = regexp.MustCompile("\\[|\\]") -) +// This regular expression is used to find all instances of square brackets within a string. +// This regular expression is used to remove the square brackets from an IPv6 address. +var squareBrackets = regexp.MustCompile("\\[|\\]") // Config is the configuration for the boundary controller type Config struct {