mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
Used keyed initializers to make govet happy.
This commit is contained in:
parent
2fb2dfda78
commit
907894416f
2 changed files with 2 additions and 2 deletions
|
|
@ -451,7 +451,7 @@ func NewProviderMetadataDomain(domain string, tlps []TLPLabel) *ProviderMetadata
|
|||
|
||||
// WriteTo saves a metadata provider to a writer.
|
||||
func (pmd *ProviderMetadata) WriteTo(w io.Writer) (int64, error) {
|
||||
nw := util.NWriter{w, 0}
|
||||
nw := util.NWriter{Writer: w, N: 0}
|
||||
enc := json.NewEncoder(&nw)
|
||||
enc.SetIndent("", " ")
|
||||
err := enc.Encode(pmd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue