Skip to content

Commit

Permalink
Remove unnecessary checks
Browse files Browse the repository at this point in the history
The checks that were removed are now being done earlier as part of #1489
  • Loading branch information
tanishq-dubey committed Nov 12, 2024
1 parent d90a9bf commit 3c0edda
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions src/commands/sbom/payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,6 @@ export const generatePayload = (
service: string,
env: string
): ScaRequest | undefined => {

if (
REQUIRED_GIT_TAGS.filter((tag) => !tags[tag]).length > 0
) {
return undefined
}

const dependencies: Dependency[] = []
const files: File[] = []
const relations: Relations[] = []
Expand Down
1 change: 0 additions & 1 deletion src/commands/sbom/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ export class UploadSbomCommand extends Command {
try {
const scaPayload = generatePayload(jsonContent, tags, service, environment)
if (!scaPayload) {
this.context.stdout.write(renderMissingGitAttributes(basePath, tags))
return 1
}
this.context.stdout.write(renderUploading(basePath))
Expand Down

0 comments on commit 3c0edda

Please sign in to comment.