@@ -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
0 commit comments