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 452db39 commit a581da1
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 a581da1

Please sign in to comment.