Skip to content

Commit

Permalink
Gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Nov 4, 2024
1 parent 8cbab83 commit ae9d114
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/composableschemadsl/compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 } }
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/composableschemadsl/compiler/importer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/composableschemadsl/compiler/translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ae9d114

Please sign in to comment.