summaryrefslogtreecommitdiff
path: root/artifacts
diff options
context:
space:
mode:
Diffstat (limited to 'artifacts')
-rw-r--r--artifacts/artifacts.go5
-rw-r--r--artifacts/database/database_test.go3
2 files changed, 6 insertions, 2 deletions
diff --git a/artifacts/artifacts.go b/artifacts/artifacts.go
index b07a130..5003898 100644
--- a/artifacts/artifacts.go
+++ b/artifacts/artifacts.go
@@ -184,6 +184,9 @@ func (s *Storage) getNewPath(ad weles.ArtifactDescription) (weles.ArtifactPath,
func (s *Storage) listenToChanges() {
for change := range s.notifier {
// Error handled in SetStatus function.
- _ = s.db.SetStatus(change) //nolint: gas, gosec
+ err := s.db.SetStatus(change)
+ if err != nil {
+ log.Println("Failed to set status of artifact.")
+ }
}
}
diff --git a/artifacts/database/database_test.go b/artifacts/database/database_test.go
index 3e45072..d1e848c 100644
--- a/artifacts/database/database_test.go
+++ b/artifacts/database/database_test.go
@@ -414,7 +414,8 @@ var _ = Describe("ArtifactDB", func() {
func(paginator weles.ArtifactPagination,
expectedResponseLength, expectedRemainingRecords int) {
- result, list, err := silverHoneybadger.Filter(emptyFilter, defaultSorter, paginator)
+ result, list, err := silverHoneybadger.Filter(
+ emptyFilter, defaultSorter, paginator)
Expect(err).ToNot(HaveOccurred())
Expect(len(result)).To(BeEquivalentTo(expectedResponseLength))