From 356dc4e562e56463a370b8a8e199a0cb2b3a7f12 Mon Sep 17 00:00:00 2001 From: qvalentin Date: Sun, 28 Jul 2024 19:07:07 +0200 Subject: [PATCH] chore: cleanup --- go.mod | 2 +- internal/adapter/yamlls/yamlls.go | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index ae19c435..31a5a8d3 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module github.com/mrjosh/helm-ls go 1.21 require ( + github.com/gobwas/glob v0.2.3 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 github.com/smacker/go-tree-sitter v0.0.0-20240214120134-1f283e24f560 @@ -55,7 +56,6 @@ require ( github.com/go-openapi/jsonpointer v0.19.6 // indirect github.com/go-openapi/jsonreference v0.20.2 // indirect github.com/go-openapi/swag v0.22.3 // indirect - github.com/gobwas/glob v0.2.3 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/google/btree v1.0.1 // indirect diff --git a/internal/adapter/yamlls/yamlls.go b/internal/adapter/yamlls/yamlls.go index 253b1f1c..e711b8c3 100644 --- a/internal/adapter/yamlls/yamlls.go +++ b/internal/adapter/yamlls/yamlls.go @@ -18,11 +18,10 @@ import ( var logger = log.GetLogger() type Connector struct { - config util.YamllsConfiguration - server protocol.Server - documents *lsplocal.DocumentStore - client protocol.Client - configured bool + config util.YamllsConfiguration + server protocol.Server + documents *lsplocal.DocumentStore + client protocol.Client } func NewConnector(ctx context.Context, yamllsConfiguration util.YamllsConfiguration, client protocol.Client, documents *lsplocal.DocumentStore) *Connector { @@ -70,10 +69,9 @@ func NewConnector(ctx context.Context, yamllsConfiguration util.YamllsConfigurat }() yamllsConnector := Connector{ - config: yamllsConfiguration, - documents: documents, - client: client, - configured: true, + config: yamllsConfiguration, + documents: documents, + client: client, } zapLogger, _ := zap.NewProduction()