From ae9d114b9ae20c51e71c5551cc535a342a9262a0 Mon Sep 17 00:00:00 2001 From: Tanner Stirrat Date: Mon, 4 Nov 2024 12:53:14 -0700 Subject: [PATCH] Gofumpt --- pkg/composableschemadsl/compiler/compiler.go | 4 ++-- pkg/composableschemadsl/compiler/importer.go | 2 +- pkg/composableschemadsl/compiler/translator.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/composableschemadsl/compiler/compiler.go b/pkg/composableschemadsl/compiler/compiler.go index 768113f110..1c16762248 100644 --- a/pkg/composableschemadsl/compiler/compiler.go +++ b/pkg/composableschemadsl/compiler/compiler.go @@ -52,7 +52,7 @@ func (cs CompiledSchema) SourcePositionToRunePosition(source input.Source, posit type config struct { skipValidation bool objectTypePrefix *string - existingNames []string + existingNames []string } func SkipValidation() Option { return func(cfg *config) { cfg.skipValidation = true } } @@ -99,7 +99,7 @@ func Compile(schema InputSchema, prefix ObjectPrefixOption, opts ...Option) (*Co mapper: mapper, schemaString: schema.SchemaString, skipValidate: cfg.skipValidation, - existingNames: cfg.existingNames, + existingNames: cfg.existingNames, }, root) if err != nil { var errorWithNode errorWithNode diff --git a/pkg/composableschemadsl/compiler/importer.go b/pkg/composableschemadsl/compiler/importer.go index 776dfbe8a1..7022fce98a 100644 --- a/pkg/composableschemadsl/compiler/importer.go +++ b/pkg/composableschemadsl/compiler/importer.go @@ -2,8 +2,8 @@ package compiler import ( "fmt" - "path" "os" + "path" "github.com/authzed/spicedb/pkg/composableschemadsl/input" "github.com/authzed/spicedb/pkg/genutil/mapz" diff --git a/pkg/composableschemadsl/compiler/translator.go b/pkg/composableschemadsl/compiler/translator.go index c1a350b2d2..6a216dea95 100644 --- a/pkg/composableschemadsl/compiler/translator.go +++ b/pkg/composableschemadsl/compiler/translator.go @@ -23,7 +23,7 @@ type translationContext struct { mapper input.PositionMapper schemaString string skipValidate bool - existingNames []string + existingNames []string } func (tctx translationContext) prefixedPath(definitionName string) (string, error) {