Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
qvalentin committed Jul 28, 2024
1 parent 06db652 commit 356dc4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
16 changes: 7 additions & 9 deletions internal/adapter/yamlls/yamlls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 356dc4e

Please sign in to comment.