mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-03 07:18:12 +08:00
fix: omit empty pins slice when reporting pin progress
Otherwise, we get messages of the form `{Pins: null, Progress: 100}`.
After this change, we'll get `{Progress: 100}`.
This commit is contained in:
parent
3f9c3f4557
commit
efa55e02a5
@ -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 (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user