Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Dec 1, 2022
1 parent 44d633c commit 400b431
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions pkg/tfgen/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ func (g *Generator) makePropertyType(typePath paths.TypePath,
return t
}

func (g *Generator) makeObjectPropertyType(typePath paths.TypePath, objectName string, res shim.Resource, info *tfbridge.SchemaInfo,
func (g *Generator) makeObjectPropertyType(typePath paths.TypePath,
objectName string, res shim.Resource, info *tfbridge.SchemaInfo,
out bool, entityDocs entityDocs) *propertyType {

t := &propertyType{
Expand Down Expand Up @@ -1097,7 +1098,8 @@ func (g *Generator) gatherResource(rawname string,
if !isProvider {
// For all properties, generate the output property metadata. Note that this may differ slightly
// from the input in that the types may differ.
outprop := g.propertyVariable(resourcePath.Outputs(), key, propschema, propinfo, doc, rawdoc, true /*out*/, entityDocs)
outprop := g.propertyVariable(resourcePath.Outputs(), key, propschema,
propinfo, doc, rawdoc, true /*out*/, entityDocs)
if outprop != nil {
res.outprops = append(res.outprops, outprop)
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/tfgen/generate_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ func rawMessage(v interface{}) pschema.RawMessage {
return pschema.RawMessage(bytes)
}

func genPulumiSchema(pack *pkg, name tokens.Package, version string, info tfbridge.ProviderInfo) (pschema.PackageSpec, error) {
func genPulumiSchema(pack *pkg, name tokens.Package, version string,
info tfbridge.ProviderInfo) (pschema.PackageSpec, error) {
g := &schemaGenerator{
pkg: name,
version: version,
Expand Down
2 changes: 1 addition & 1 deletion pkg/tfgen/internal/paths/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (p *PropertyPath) UniqueKey() string {
}

func (p *PropertyPath) String() string {
var path string = p.PropertyName.String()
path := p.PropertyName.String()
if path != "" {
path = "." + path
}
Expand Down

0 comments on commit 400b431

Please sign in to comment.