Skip to content

Commit 4ca07c5

Browse files
authored
buckets: fix nil ctx (#470)
Signed-off-by: Sander Pick <sanderpick@gmail.com>
1 parent dbec42b commit 4ca07c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/bucketsd/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,7 @@ func (s *Service) updateOrAddPin(ctx context.Context, from, to path.Path) (conte
17091709
} else {
17101710
if err := s.IPFSClient.Pin().Update(ctx, from, to); err != nil {
17111711
if err.Error() == pinNotRecursiveMsg {
1712-
return nil, s.IPFSClient.Pin().Add(ctx, to)
1712+
return ctx, s.IPFSClient.Pin().Add(ctx, to)
17131713
}
17141714
return ctx, err
17151715
}

0 commit comments

Comments
 (0)