mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Fix minor typos in comments and bump (c) year
This commit is contained in:
parent
bab5ebdc78
commit
b95cd0db74
1 changed files with 4 additions and 4 deletions
|
|
@ -3,8 +3,8 @@
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
//
|
//
|
||||||
// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
// SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
||||||
// Software-Engineering: 2021 Intevation GmbH <https://intevation.de>
|
// Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
@ -155,7 +155,7 @@ func (c *controller) upload(r *http.Request) (interface{}, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate againt JSON schema.
|
// Validate against JSON schema.
|
||||||
if !c.cfg.NoValidation {
|
if !c.cfg.NoValidation {
|
||||||
validationErrors, err := csaf.ValidateCSAF(content)
|
validationErrors, err := csaf.ValidateCSAF(content)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -167,7 +167,7 @@ func (c *controller) upload(r *http.Request) (interface{}, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate against remote validator
|
// Validate against remote validator.
|
||||||
if c.cfg.RemoteValidator != nil {
|
if c.cfg.RemoteValidator != nil {
|
||||||
validator, err := c.cfg.RemoteValidator.Open()
|
validator, err := c.cfg.RemoteValidator.Open()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue