Skip to content

Commit 1158d73

Browse files
pbolingCopilot
andauthored
Update lib/cyclonedx/bom_builder.rb
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: |7eter l-|. l3oling <peter.boling@gmail.com>
1 parent 77aeb9a commit 1158d73

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

lib/cyclonedx/bom_builder.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,6 @@ def self.setup(path)
142142
abort
143143
end
144144

145-
# Spec version selection
146-
requested_spec = @options[:spec_version] || '1.7'
147-
if SUPPORTED_SPEC_VERSIONS.include?(requested_spec)
148-
@spec_version = requested_spec
149-
else
150-
@logger.error("Unrecognized CycloneDX spec version '#{requested_spec}'. Please choose one of #{SUPPORTED_SPEC_VERSIONS}")
151-
abort
152-
end
153-
154145
@bom_file_path = if @options[:bom_file_path].nil?
155146
"./bom.#{@bom_output_format}"
156147
else

0 commit comments

Comments
 (0)