Skip to content

Commit

Permalink
refactor: remove option.Init()
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <[email protected]>
  • Loading branch information
knqyf263 committed Nov 16, 2023
1 parent b7d9f64 commit ae0399c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions pkg/fanal/artifact/artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ type Option struct {
WalkerOption walker.Option
}

func (o *Option) Init() {
if o.Parallel == 0 {
o.Parallel = 5 // Set the default value
}
}

func (o *Option) AnalyzerOptions() analyzer.AnalyzerOptions {
return analyzer.AnalyzerOptions{
Group: o.AnalyzerGroup,
Expand Down
1 change: 0 additions & 1 deletion pkg/fanal/artifact/sbom/sbom.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ type Artifact struct {
}

func NewArtifact(filePath string, c cache.ArtifactCache, opt artifact.Option) (artifact.Artifact, error) {
opt.Init()
return Artifact{
filePath: filepath.Clean(filePath),
cache: c,
Expand Down

0 comments on commit ae0399c

Please sign in to comment.