Skip to content

Commit

Permalink
fix sharowed variable error
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Nov 27, 2024
1 parent 10fee6d commit 8ac3d5b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/coreapi/pin.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,8 @@ func (api *PinAPI) pinLsAll(ctx context.Context, typeStr string, detailed bool,
if emittedSet.Has(c) {
return true // skipped
}
addErr := AddToResultKeys(c, "", "indirect")
if addErr != nil {
return false
}
return true
addErr = AddToResultKeys(c, "", "indirect")
return addErr == nil
},
merkledag.SkipRoot(), merkledag.Concurrent(),
)
Expand Down

0 comments on commit 8ac3d5b

Please sign in to comment.