mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/integration/template: fix go vet errors (#2021)
* fix govet * fix template and receiver argument
This commit is contained in:
@@ -225,7 +225,7 @@ func (t *tables) Load(ctx context.Context, querier querier) ([]string, error) {
|
|||||||
return tables, err
|
return tables, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tables) load(ctx context.Context, querier querier) ([]string, error) {
|
func (*tables) load(ctx context.Context, querier querier) ([]string, error) {
|
||||||
rows := &sql.Rows{}
|
rows := &sql.Rows{}
|
||||||
query, args := sql.Select("type").
|
query, args := sql.Select("type").
|
||||||
From(sql.Table(schema.TypeTable)).
|
From(sql.Table(schema.TypeTable)).
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ func (t *tables) Load(ctx context.Context, querier querier) ([]string, error) {
|
|||||||
|
|
||||||
{{/* An example of a local helper template. */}}
|
{{/* An example of a local helper template. */}}
|
||||||
{{ define "node/helper/loadtable" }}
|
{{ define "node/helper/loadtable" }}
|
||||||
func (tables) load(ctx context.Context, querier querier) ([]string, error) {
|
func (*tables) load(ctx context.Context, querier querier) ([]string, error) {
|
||||||
rows := &sql.Rows{}
|
rows := &sql.Rows{}
|
||||||
query, args := sql.Select("type").
|
query, args := sql.Select("type").
|
||||||
From(sql.Table(schema.TypeTable)).
|
From(sql.Table(schema.TypeTable)).
|
||||||
|
|||||||
Reference in New Issue
Block a user