mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Merge pull request #2766 from github/piki/clear-cache
Catch `ENOENT` in `clear_cache`
This commit is contained in:
@@ -50,6 +50,7 @@ class GitLinguist
|
||||
|
||||
def clear_language_stats
|
||||
File.unlink(cache_file)
|
||||
rescue Errno::ENOENT
|
||||
end
|
||||
|
||||
def disable_language_stats
|
||||
|
||||
Reference in New Issue
Block a user