Skip to content

Commit

Permalink
fix .goreleaser.yml (future-architect#1204)
Browse files Browse the repository at this point in the history
* fix .goreleaser.yml

* chore: fix lint warnings
  • Loading branch information
kotakanbe authored Apr 1, 2021
1 parent e879ff1 commit 6fef4db
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ archives:
format: tar.gz
files:
- LICENSE
- NOTICE
- README*
- CHANGELOG.md

Expand All @@ -85,7 +84,6 @@ archives:
format: tar.gz
files:
- LICENSE
- NOTICE
- README*
- CHANGELOG.md

Expand All @@ -96,7 +94,6 @@ archives:
format: tar.gz
files:
- LICENSE
- NOTICE
- README*
- CHANGELOG.md

Expand All @@ -107,7 +104,6 @@ archives:
format: tar.gz
files:
- LICENSE
- NOTICE
- README*
- CHANGELOG.md
snapshot:
Expand Down
4 changes: 2 additions & 2 deletions detector/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func FillCvesWithNvdJvn(r *models.ScanResult, cnf config.GoCveDictConf, logOpts
}
defer func() {
if err := client.closeDB(); err != nil {
logging.Log.Errorf("Failed to close DB. err: %+v")
logging.Log.Errorf("Failed to close DB. err: %+v", err)
}
}()

Expand Down Expand Up @@ -383,7 +383,7 @@ func DetectCpeURIsCves(r *models.ScanResult, cpeURIs []string, cnf config.GoCveD
}
defer func() {
if err := client.closeDB(); err != nil {
logging.Log.Errorf("Failed to close DB. err: %+v")
logging.Log.Errorf("Failed to close DB. err: %+v", err)
}
}()

Expand Down
2 changes: 1 addition & 1 deletion detector/exploitdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func FillWithExploit(r *models.ScanResult, cnf config.ExploitConf) (nExploitCve
}
defer func() {
if err := driver.CloseDB(); err != nil {
logging.Log.Errorf("Failed to close DB. err: %+v")
logging.Log.Errorf("Failed to close DB. err: %+v", err)
}
}()

Expand Down
2 changes: 1 addition & 1 deletion gost/gost.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func FillCVEsWithRedHat(r *models.ScanResult, cnf config.GostConf) error {
}
defer func() {
if err := db.CloseDB(); err != nil {
logging.Log.Errorf("Failed to close DB. err: %+v")
logging.Log.Errorf("Failed to close DB. err: %+v", err)
}
}()
return RedHat{Base{DBDriver{DB: db, Cnf: &cnf}}}.fillCvesWithRedHatAPI(r)
Expand Down
2 changes: 1 addition & 1 deletion oval/alpine.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (o Alpine) FillWithOval(r *models.ScanResult) (nCVEs int, err error) {
}
defer func() {
if err := driver.CloseDB(); err != nil {
logging.Log.Errorf("Failed to close DB. err: %+v")
logging.Log.Errorf("Failed to close DB. err: %+v", err)
}
}()

Expand Down
2 changes: 1 addition & 1 deletion oval/debian.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (o Debian) FillWithOval(r *models.ScanResult) (nCVEs int, err error) {
}
defer func() {
if err := driver.CloseDB(); err != nil {
logging.Log.Errorf("Failed to close DB. err: %+v")
logging.Log.Errorf("Failed to close DB. err: %+v", err)
}
}()

Expand Down

0 comments on commit 6fef4db

Please sign in to comment.