From cbb41588ea6634a8e4d734821743d56c445c27e2 Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Thu, 21 Apr 2022 15:40:56 +0200 Subject: [PATCH] Fix minor typos in code comments --- cmd/csaf_checker/processor.go | 7 ++++--- cmd/csaf_checker/reporters.go | 2 +- cmd/csaf_provider/create.go | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cmd/csaf_checker/processor.go b/cmd/csaf_checker/processor.go index 3e32bb3..a8be6a0 100644 --- a/cmd/csaf_checker/processor.go +++ b/cmd/csaf_checker/processor.go @@ -826,9 +826,10 @@ func extractProviderURL(r io.Reader) (string, error) { return "", nil } -// checkProviderMetadata checks the provider-metatdata if exists, decodes, -// and validates against the JSON schema. According to the result the respective -// error messages are passed to the badProviderMetadatas method in case of errors. +// checkProviderMetadata checks provider-metadata.json. If it exists, +// decodes, and validates against the JSON schema. +// According to the result, the respective error messages are passed +// to the badProviderMetadatas method. // It returns nil if all checks are passed. func (p *processor) checkProviderMetadata(domain string) error { diff --git a/cmd/csaf_checker/reporters.go b/cmd/csaf_checker/reporters.go index be79926..9d83e6a 100644 --- a/cmd/csaf_checker/reporters.go +++ b/cmd/csaf_checker/reporters.go @@ -89,7 +89,7 @@ func (r *redirectsReporter) report(p *processor, domain *Domain) { req.Messages = keys } -// report tests if an provider-metatdata.json are available and sets the +// report tests if an provider-metadata.json are available and sets the // "message" field value of the "Requirement" struct as a result of that. func (r *providerMetadataReport) report(p *processor, domain *Domain) { req := r.requirement(domain) diff --git a/cmd/csaf_provider/create.go b/cmd/csaf_provider/create.go index 2ea751f..a95d6ec 100644 --- a/cmd/csaf_provider/create.go +++ b/cmd/csaf_provider/create.go @@ -83,7 +83,7 @@ func createFeedFolders(c *config, wellknown string) error { return nil } -// createSecurity creats the "security.txt" file if does not exist +// createSecurity creates the "security.txt" file if does not exist // and writes the CSAF field inside the file. func createSecurity(c *config, wellknown string) error { security := filepath.Join(wellknown, "security.txt")