Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
dastrong committed Nov 11, 2024
1 parent 1c91112 commit 8e6933c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/commands/sbom/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,6 @@ export const renderInvalidPayload = (sbomReport: string) => {
return fullStr
}

export const renderMissingSpan = (errorMessage: string) => {
const currentPath = `[${chalk.bold.dim(process.cwd())}]`

let fullStr = ''
fullStr += chalk.yellow(`${ICONS.WARNING} Validation failed: ${errorMessage}.\n`)
fullStr += chalk.yellow(
`Upload attempted from ${currentPath}. Is this the directory for which this analysis was run?\n`
)
fullStr += chalk.yellow(`The upload must come from a directory with a ".git" directory.\n`)

return fullStr
}

export const renderDuplicateUpload = (sha: string, env: string, service: string) => {
let fullStr = ''
fullStr += chalk.red(`${ICONS.WARNING} Duplicate SBOM upload detected\n`)
Expand Down

0 comments on commit 8e6933c

Please sign in to comment.