Skip to content

Commit

Permalink
Merge pull request #8023 from ipfs/fix/pins-null
Browse files Browse the repository at this point in the history
fix: omit empty pins slice when reporting pin progress
  • Loading branch information
Stebalien authored Apr 28, 2021
2 parents eea198f + efa55e0 commit c1a0eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/commands/pin/pin.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ type PinOutput struct {
}

type AddPinOutput struct {
Pins []string
Progress int `json:",omitempty"`
Pins []string `json:",omitempty"`
Progress int `json:",omitempty"`
}

const (
Expand Down

0 comments on commit c1a0eb5

Please sign in to comment.