Skip to content

Commit

Permalink
fix: remove unused param on table.go and tables.go: canAddr
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonamorim committed Dec 3, 2024
1 parent 8b05a13 commit d563e2d
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 d563e2d

Please sign in to comment.