Skip to content

Commit 691a46b

Browse files
author
Andrew Farries
committed
Add omitempty struct tag to TLS config
1 parent b681cc1 commit 691a46b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/common-go/baseserver/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type ServicesConfiguration struct {
1515

1616
type ServerConfiguration struct {
1717
Address string `json:"address" yaml:"address"`
18-
TLS *TLSConfiguration `json:"tls" yaml:"tls"`
18+
TLS *TLSConfiguration `json:"tls,omitempty" yaml:"tls,omitempty"`
1919
}
2020

2121
// GetAddress returns the configured address or an empty string of s is nil

0 commit comments

Comments
 (0)