Skip to content

Commit

Permalink
fix: resolve linting errors to pass checks
Browse files Browse the repository at this point in the history
Signed-off-by: Aswinr24 <aswinr242004@gmail.com>
  • Loading branch information
Aswinr24 committed Jan 4, 2025
1 parent 398210a commit 17dc871
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/cli/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ func (l LogOptions) Validate() error {

// OutputOptions provides options for customizing the output.
type OutputOptions struct {
OutputFilePath string
OutputVersion string
UseJSON bool
OutputFilePath string
OutputVersion string
UseJSON bool
DisableHTMLEscape bool
}

Expand Down
4 changes: 2 additions & 2 deletions internal/cli/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ func WriteBOM(bom *cdx.BOM, outputOptions options.OutputOptions) error {
encoder := cdx.NewBOMEncoder(outputWriter, outputFormat)
encoder.SetPretty(true)

if(outputOptions.DisableHTMLEscape) {
if outputOptions.DisableHTMLEscape {
encoder.SetEscapeHTML(false)
}
}

if err := encoder.EncodeVersion(bom, outputVersion); err != nil {
return fmt.Errorf("failed to encode sbom: %w", err)
Expand Down

0 comments on commit 17dc871

Please sign in to comment.