Skip to content

Commit

Permalink
Remove redundant work
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Aug 13, 2018
1 parent 02ba7d1 commit 583f8a2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions processor/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,9 @@ func walkDirectoryParallel(root string, output *chan *FileJob) {
}
} else {
if gitignoreerror != nil || !gitignore.Match(filepath.Join(root, f.Name()), false) {
extension := getExtension(f.Name())
language, ok := extensionLookup[extension]

extension := ""
// Lookup in case the full name matches
language, ok = extensionLookup[strings.ToLower(f.Name())]
language, ok := extensionLookup[strings.ToLower(f.Name())]

// If no match check if we have a matching extension
if !ok {
Expand Down

0 comments on commit 583f8a2

Please sign in to comment.