Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mcastorina committed Aug 2, 2023
1 parent 62b9686 commit c6987b0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/engine/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ func (e *Engine) ScanFileSystem(ctx context.Context, c sources.FilesystemConfig)
return err
}

fileSystemSource := filesystem.Source{}
fileSystemSource.WithFilter(c.Filter)

handle, err := e.sourceManager.Enroll(ctx, "trufflehog - filesystem", fileSystemSource.Type(),
handle, err := e.sourceManager.Enroll(ctx, "trufflehog - filesystem", new(filesystem.Source).Type(),
func(ctx context.Context, jobID, sourceID int64) (sources.Source, error) {
fileSystemSource := filesystem.Source{}
fileSystemSource.WithFilter(c.Filter)
Expand Down

0 comments on commit c6987b0

Please sign in to comment.