mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 18:15:42 +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
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// checkProviderMetadata checks the provider-metatdata if exists, decodes,
|
// checkProviderMetadata checks provider-metadata.json. If it exists,
|
||||||
// and validates against the JSON schema. According to the result the respective
|
// decodes, and validates against the JSON schema.
|
||||||
// error messages are passed to the badProviderMetadatas method in case of errors.
|
// According to the result, the respective error messages are passed
|
||||||
|
// to the badProviderMetadatas method.
|
||||||
// It returns nil if all checks are passed.
|
// It returns nil if all checks are passed.
|
||||||
func (p *processor) checkProviderMetadata(domain string) error {
|
func (p *processor) checkProviderMetadata(domain string) error {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ func (r *redirectsReporter) report(p *processor, domain *Domain) {
|
||||||
req.Messages = keys
|
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.
|
// "message" field value of the "Requirement" struct as a result of that.
|
||||||
func (r *providerMetadataReport) report(p *processor, domain *Domain) {
|
func (r *providerMetadataReport) report(p *processor, domain *Domain) {
|
||||||
req := r.requirement(domain)
|
req := r.requirement(domain)
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ func createFeedFolders(c *config, wellknown string) error {
|
||||||
return nil
|
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.
|
// and writes the CSAF field inside the file.
|
||||||
func createSecurity(c *config, wellknown string) error {
|
func createSecurity(c *config, wellknown string) error {
|
||||||
security := filepath.Join(wellknown, "security.txt")
|
security := filepath.Join(wellknown, "security.txt")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue