src-d / gitbase

SQL interface to git repositories, written in Go. https://docs.sourced.tech/gitbase
Apache License 2.0
2.06k stars 124 forks source link

function: use getLanguageCache helper in LOC function #983

Closed erizocosmico closed 4 years ago

erizocosmico commented 4 years ago

Fixes #982

Language cache was migrated to the new cache API, but this part was not, and when the cache has not been initialized yet it can lead to a panic because it does not initialize the cache, only accesses it.