Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
firefart committed Oct 28, 2023
1 parent c6784bc commit 7a444d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libgobuster/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ func (set *Set[T]) Stringify() string {
}

// nolint:unused
// this method is much more faster than lineCounter but has the following errors:
// - empty files are reported as 1 lines
// - files only containing a newline are reported as 1 lines
// - also counts lines with comments
func lineCounter_old(r io.Reader) (int, error) {
buf := make([]byte, 32*1024)
count := 1
Expand Down

0 comments on commit 7a444d9

Please sign in to comment.