mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Fix minor typos in code comments
This commit is contained in:
parent
fb61bc349f
commit
cbb41588ea
3 changed files with 6 additions and 5 deletions
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue