-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Returned value when a language can't be detected #63
Comments
I think current implementation is correct, except that it probably should directly return |
lang := enry.GetLanguage(filename, content)
if lang == enry.OtherLanguage {
return lang
} Is it ok? I could make a PR to fix it. |
Oh, I see. If you could do the PR that would be great. |
this is the code used in language.go
but since enry.OtherLanguage was changed to be the string zero value
""
, the if statement is reassigning again the same value to lang.What is the expected value this function should return in case a language couldn't be detected?
The text was updated successfully, but these errors were encountered: