Merge pull request #8023 from ipfs/fix/pins-null

fix: omit empty pins slice when reporting pin progress
This commit is contained in:
Steven Allen 2021-04-28 11:28:30 -07:00 committed by GitHub
commit c1a0eb567a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 (