Skip to content

Commit 7a444d9

Browse files
committed
comments
1 parent c6784bc commit 7a444d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libgobuster/helpers.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ func (set *Set[T]) Stringify() string {
6969
}
7070

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

0 commit comments

Comments
 (0)