Skip to content

Commit

Permalink
adjusted
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Aug 16, 2024
1 parent 35cc3fa commit 13993d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2900,9 +2900,9 @@ func (r *ManifestReader) scan(path string) (err error) {
scanner := bufio.NewScanner(r.file)
for scanner.Scan() {
content := scanner.Text()
content = strings.TrimSpace(content)
if pattern.Match([]byte(content)) {
r.marker[content] = p
matched := strings.TrimSpace(content)
if pattern.Match([]byte(matched)) {
r.marker[matched] = p
}
p += int64(len(content))
p++
Expand Down Expand Up @@ -2938,7 +2938,7 @@ func (r *ManifestReader) open(path, begin, end string) (reader io.ReadCloser, er
}
return
}
r.begin = r.begin + int64(len(begin))
r.begin += int64(len(begin))
r.begin++
r.read = r.end - r.begin
r.file, err = os.Open(path)
Expand Down

0 comments on commit 13993d8

Please sign in to comment.