mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 15:14:38 +00:00
Use correct reader in filesystem source (#756)
This commit is contained in:
parent
37c4eea66a
commit
d11ce27f33
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk) err
|
||||||
}
|
}
|
||||||
reReader.Stop()
|
reReader.Stop()
|
||||||
|
|
||||||
for chunkData := range common.ChunkReader(inputFile) {
|
for chunkData := range common.ChunkReader(reReader) {
|
||||||
chunksChan <- &sources.Chunk{
|
chunksChan <- &sources.Chunk{
|
||||||
SourceType: s.Type(),
|
SourceType: s.Type(),
|
||||||
SourceName: s.name,
|
SourceName: s.name,
|
||||||
|
|
Loading…
Reference in a new issue