File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,8 @@ func (i *importer) queryImports(filename string) fileImports {
310
310
}
311
311
}
312
312
}
313
- if strings .HasPrefix (q .Ret .Type (), name ) {
313
+ retType := strings .TrimPrefix (q .Ret .Type (), "[]" )
314
+ if strings .HasPrefix (retType , name ) {
314
315
return true
315
316
}
316
317
}
@@ -323,7 +324,8 @@ func (i *importer) queryImports(filename string) fileImports {
323
324
}
324
325
}
325
326
}
326
- if strings .HasPrefix (q .Arg .Type (), name ) {
327
+ argType := strings .TrimPrefix (q .Arg .Type (), "[]" )
328
+ if strings .HasPrefix (argType , name ) {
327
329
return true
328
330
}
329
331
}
@@ -418,7 +420,8 @@ func (i *importer) batchImports(filename string) fileImports {
418
420
}
419
421
}
420
422
}
421
- if strings .HasPrefix (q .Ret .Type (), name ) {
423
+ retType := strings .TrimPrefix (q .Ret .Type (), "[]" )
424
+ if strings .HasPrefix (retType , name ) {
422
425
return true
423
426
}
424
427
}
@@ -431,7 +434,8 @@ func (i *importer) batchImports(filename string) fileImports {
431
434
}
432
435
}
433
436
}
434
- if strings .HasPrefix (q .Arg .Type (), name ) {
437
+ argType := strings .TrimPrefix (q .Arg .Type (), "[]" )
438
+ if strings .HasPrefix (argType , name ) {
435
439
return true
436
440
}
437
441
}
You can’t perform that action at this time.
0 commit comments