Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Hideo Hattori committed Apr 5, 2016
1 parent a87d155 commit e2a3ea2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions file.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ func (cf ClocFiles) Less(i, j int) bool {
return cf[i].Code > cf[j].Code
}

var fileCache map[string]struct{}

func analyzeFile(filename string, language *Language) *ClocFile {
if opts.Debug {
fmt.Printf("filename=%v\n", filename)
Expand Down
2 changes: 2 additions & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
"strings"
)

var fileCache map[string]struct{}

func containComments(line, commentStart, commentEnd string) bool {
inComments := 0
for i := 0; i < len(line)/len(commentStart); i += len(commentStart) {
Expand Down

0 comments on commit e2a3ea2

Please sign in to comment.