Added more tests
This commit is contained in:
@ -26,9 +26,8 @@ func (s *Scanner) scanFile(path string, pkg string) error {
|
||||
}
|
||||
|
||||
s.files <- file
|
||||
i := 0
|
||||
|
||||
for i < len(tokens) {
|
||||
for i := 0; i < len(tokens); i++ {
|
||||
switch tokens[i].Kind {
|
||||
case token.NewLine:
|
||||
case token.Comment:
|
||||
@ -49,8 +48,6 @@ func (s *Scanner) scanFile(path string, pkg string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
i++
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user