Skip to content

Commit

Permalink
fix: fix static analysis
Browse files Browse the repository at this point in the history
^--^  ^------------^
|     |
|     +-> Summary in present tense.
|
+-------> Type: chore, docs, feat, fix, refactor, style, or test.

[optional body]

[optional footer(s)]

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
  • Loading branch information
spiffcs committed Oct 11, 2022
1 parent 5e20ee8 commit 0a0511e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
}
},
"schema": {
"version": "4.0.1",
"url": "https://raw.githubusercontent.com/anchore/syft/main/schema/json/schema-4.0.1.json"
"version": "4.1.0",
"url": "https://raw.githubusercontent.com/anchore/syft/main/schema/json/schema-4.1.0.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
}
},
"schema": {
"version": "4.0.1",
"url": "https://raw.githubusercontent.com/anchore/syft/main/schema/json/schema-4.0.1.json"
"version": "4.1.0",
"url": "https://raw.githubusercontent.com/anchore/syft/main/schema/json/schema-4.1.0.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
}
},
"schema": {
"version": "4.0.1",
"url": "https://raw.githubusercontent.com/anchore/syft/main/schema/json/schema-4.0.1.json"
"version": "4.1.0",
"url": "https://raw.githubusercontent.com/anchore/syft/main/schema/json/schema-4.1.0.json"
}
}
2 changes: 0 additions & 2 deletions syft/source/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,6 @@ func (s *Source) SetID() {

s.id = artifact.ID(strings.TrimPrefix(d, "sha256:"))
s.Metadata.ID = strings.TrimPrefix(d, "sha256:")

return
}

func calculateChainID(m ImageMetadata) string {
Expand Down

0 comments on commit 0a0511e

Please sign in to comment.