Address code review feedback

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
Alexander Bezzubov
2019-04-08 16:07:10 +02:00
parent 416afb45fc
commit bdb5603f28
3 changed files with 14 additions and 18 deletions

View File

@ -391,7 +391,7 @@ func getDotIndexes(filename string) []int {
}
// GetLanguagesByContent returns a slice of languages for the given content.
// It is a Strategy that uses a content-based regexp heuristics and a filename extension.
// It is a Strategy that uses content-based regexp heuristics and a filename extension.
func GetLanguagesByContent(filename string, content []byte, _ []string) []string {
if filename == "" {
return nil