mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
simplified code
This commit is contained in:
parent
046e96cfec
commit
de872893f1
1 changed files with 2 additions and 3 deletions
|
|
@ -290,9 +290,8 @@ func (p *processor) process(filename string) error {
|
|||
|
||||
var uploadErr error
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
s := fmt.Sprintf("upload failed: %s", resp.Status)
|
||||
fmt.Printf("HTTPS %s\n", s)
|
||||
uploadErr = errors.New(s)
|
||||
uploadErr := fmt.Errorf("upload failed: %s", resp.Status)
|
||||
fmt.Printf("HTTPS %s\n", uploadErr)
|
||||
}
|
||||
|
||||
var result struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue