1
0
mirror of https://github.com/strongdm/comply synced 2025-12-16 19:24:01 +00:00

Fix dependency vulnerabilities (#125)

- Dependencies:
  - containerd/containerd
  - docker/distribuition
  - opencontainers/image-spec
This commit is contained in:
wallrony
2022-05-05 14:36:07 -03:00
parent e31fef1bb5
commit 4a143af5db
9 changed files with 56 additions and 17 deletions

View File

@@ -207,11 +207,11 @@ func (errs Errors) MarshalJSON() ([]byte, error) {
for _, daErr := range errs {
var err Error
switch daErr.(type) {
switch daErr := daErr.(type) {
case ErrorCode:
err = daErr.(ErrorCode).WithDetail(nil)
err = daErr.WithDetail(nil)
case Error:
err = daErr.(Error)
err = daErr
default:
err = ErrorCodeUnknown.WithDetail(daErr)