Skip to content

Commit 9a59d89

Browse files
authored
gofmt -s -w . (#890)
1 parent 9dbb0bc commit 9a59d89

File tree

166 files changed

+11
-339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+11
-339
lines changed

internal/codegen/golang/imports.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (i *importer) interfaceImports() fileImports {
136136
}
137137

138138
std := map[string]struct{}{
139-
"context": struct{}{},
139+
"context": {},
140140
}
141141
if uses("sql.Null") {
142142
std["database/sql"] = struct{}{}
@@ -183,12 +183,12 @@ func (i *importer) interfaceImports() fileImports {
183183
}
184184

185185
pkgs := make([]ImportSpec, 0, len(pkg))
186-
for spec, _ := range pkg {
186+
for spec := range pkg {
187187
pkgs = append(pkgs, spec)
188188
}
189189

190190
stds := make([]ImportSpec, 0, len(std))
191-
for path, _ := range std {
191+
for path := range std {
192192
stds = append(stds, ImportSpec{Path: path})
193193
}
194194

@@ -243,12 +243,12 @@ func (i *importer) modelImports() fileImports {
243243
}
244244

245245
pkgs := make([]ImportSpec, 0, len(pkg))
246-
for spec, _ := range pkg {
246+
for spec := range pkg {
247247
pkgs = append(pkgs, spec)
248248
}
249249

250250
stds := make([]ImportSpec, 0, len(std))
251-
for path, _ := range std {
251+
for path := range std {
252252
stds = append(stds, ImportSpec{Path: path})
253253
}
254254

@@ -330,7 +330,7 @@ func (i *importer) queryImports(filename string) fileImports {
330330
}
331331

332332
std := map[string]struct{}{
333-
"context": struct{}{},
333+
"context": {},
334334
}
335335
if uses("sql.Null") {
336336
std["database/sql"] = struct{}{}
@@ -380,12 +380,12 @@ func (i *importer) queryImports(filename string) fileImports {
380380
}
381381

382382
pkgs := make([]ImportSpec, 0, len(pkg))
383-
for spec, _ := range pkg {
383+
for spec := range pkg {
384384
pkgs = append(pkgs, spec)
385385
}
386386

387387
stds := make([]ImportSpec, 0, len(std))
388-
for path, _ := range std {
388+
for path := range std {
389389
stds = append(stds, ImportSpec{Path: path})
390390
}
391391

internal/codegen/kotlin/imports.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (i *importer) interfaceImports() [][]string {
5757

5858
std := stdImports(uses)
5959
stds := make([]string, 0, len(std))
60-
for s, _ := range std {
60+
for s := range std {
6161
stds = append(stds, s)
6262
}
6363

@@ -85,7 +85,7 @@ func (i *importer) modelImports() [][]string {
8585
}
8686

8787
stds := make([]string, 0, len(std))
88-
for s, _ := range std {
88+
for s := range std {
8989
stds = append(stds, s)
9090
}
9191

@@ -163,7 +163,7 @@ func (i *importer) queryImports(filename string) [][]string {
163163
}
164164

165165
stds := make([]string, 0, len(std))
166-
for s, _ := range std {
166+
for s := range std {
167167
stds = append(stds, s)
168168
}
169169

internal/sql/ast/a_array_expr.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type A_ArrayExpr struct {
64
Elements *List
75
Location int

internal/sql/ast/a_const.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type A_Const struct {
64
Val Node
75
Location int

internal/sql/ast/a_expr.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type A_Expr struct {
64
Kind A_Expr_Kind
75
Name *List

internal/sql/ast/a_indices.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type A_Indices struct {
64
IsSlice bool
75
Lidx Node

internal/sql/ast/a_indirection.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type A_Indirection struct {
64
Arg Node
75
Indirection *List

internal/sql/ast/access_priv.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type AccessPriv struct {
64
PrivName *string
75
Cols *List

internal/sql/ast/aggref.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type Aggref struct {
64
Xpr Node
75
Aggfnoid Oid

internal/sql/ast/alias.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package ast
22

3-
import ()
4-
53
type Alias struct {
64
Aliasname *string
75
Colnames *List

0 commit comments

Comments
 (0)