Skip to content

Commit

Permalink
Merge pull request #1081 from ramonamorim/fix/unused-param
Browse files Browse the repository at this point in the history
Fix: Removed unused param on table.go and tables.go: canAddr
  • Loading branch information
j2gg0s authored Dec 3, 2024
2 parents 8b05a13 + d563e2d commit 7703a2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions schema/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type structField struct {
Table *Table
}

func (table *Table) init(dialect Dialect, typ reflect.Type, canAddr bool) {
func (table *Table) init(dialect Dialect, typ reflect.Type) {
table.dialect = dialect
table.Type = typ
table.ZeroValue = reflect.New(table.Type).Elem()
Expand All @@ -90,7 +90,7 @@ func (table *Table) init(dialect Dialect, typ reflect.Type, canAddr bool) {

table.Fields = make([]*Field, 0, typ.NumField())
table.FieldMap = make(map[string]*Field, typ.NumField())
table.processFields(typ, canAddr)
table.processFields(typ)

hooks := []struct {
typ reflect.Type
Expand All @@ -110,7 +110,7 @@ func (table *Table) init(dialect Dialect, typ reflect.Type, canAddr bool) {
}
}

func (t *Table) processFields(typ reflect.Type, canAddr bool) {
func (t *Table) processFields(typ reflect.Type) {
type embeddedField struct {
prefix string
index []int
Expand Down
2 changes: 1 addition & 1 deletion schema/tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (t *Tables) InProgress(typ reflect.Type) *Table {

table := new(Table)
t.inProgress[typ] = table
table.init(t.dialect, typ, false)
table.init(t.dialect, typ)

return table
}
Expand Down

0 comments on commit 7703a2e

Please sign in to comment.