Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Removed unused param on table.go and tables.go: canAddr #1081

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading