You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't make sense for this function to not have a filename parameter (even the README.md has an example where the parameter is there). I'll add that parameter.
In
GetLanguageByContent
(https://github.com/src-d/enry/blob/master/common.go#L88) we can see the passed filename is""
, but inGetLanguagesByContent
(https://github.com/src-d/enry/blob/master/common.go#L382), which is called by the aforementioned function, returns always nil if the extension is not matched, which always happens becauseGetLanguagesByContent
is explicitly passing an empty string.We should either fix this or remove this exported function, because it does nothing.
The text was updated successfully, but these errors were encountered: