Skip to content

Commit b183b2a

Browse files
committed
fixed go vet issue
1 parent 3257cbc commit b183b2a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

index/find_component_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ paths:
241241
// add remote filesystem
242242
rolo.AddRemoteFS("", remoteFS)
243243

244-
ctx, _ := context.WithDeadline(context.Background(), time.Now().Add(5*time.Second))
244+
ctx, cancel := context.WithDeadline(context.Background(), time.Now().Add(5*time.Second))
245+
defer cancel()
245246
var idx *SpecIndex
246247
done := make(chan struct{})
247248
go func() {

0 commit comments

Comments
 (0)