Skip to content

Commit

Permalink
fix: linter issue with unused func addToTable
Browse files Browse the repository at this point in the history
  • Loading branch information
dosco committed Feb 21, 2021
1 parent e6a964b commit 13a79a3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions core/introspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,16 @@ func (in *intro) addTables() error {
return nil
}

func (in *intro) addToTable(name, desc string, ti sdata.DBTable) {
k := name + "Output"
var ot *schema.Object = in.Types[k].(*schema.Object)

ot.Fields = append(ot.Fields, &schema.Field{
Name: ti.Name,
Type: &schema.TypeName{Name: ti.Name + "Output"},
Desc: schema.NewDescription(desc),
})
}
// func (in *intro) addToTable(name, desc string, ti sdata.DBTable) {
// k := name + "Output"
// var ot *schema.Object = in.Types[k].(*schema.Object)

// ot.Fields = append(ot.Fields, &schema.Field{
// Name: ti.Name,
// Type: &schema.TypeName{Name: ti.Name + "Output"},
// Desc: schema.NewDescription(desc),
// })
// }

func (in *intro) addTable(name string, ti sdata.DBTable) error {
if ti.Blocked {
Expand Down

0 comments on commit 13a79a3

Please sign in to comment.