mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 11:31:54 +08:00
go-ipfs-config: fix: String method on the OptionalString (#153)
* fix: String method on the OptionalString * test(OptionalString): empty string is preserved Co-authored-by: Marcin Rataj <lidel@lidel.org>
This commit is contained in:
@ -360,7 +360,7 @@ func (p OptionalString) String() string {
|
||||
if p.value == nil {
|
||||
return "default"
|
||||
}
|
||||
return fmt.Sprintf("%d", p.value)
|
||||
return *p.value
|
||||
}
|
||||
|
||||
var _ json.Unmarshaler = (*OptionalInteger)(nil)
|
||||
|
Reference in New Issue
Block a user