mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-02-10 10:19:40 +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
|
def clear_language_stats
|
||||||
File.unlink(cache_file)
|
File.unlink(cache_file)
|
||||||
|
rescue Errno::ENOENT
|
||||||
end
|
end
|
||||||
|
|
||||||
def disable_language_stats
|
def disable_language_stats
|
||||||
|
|||||||
Reference in New Issue
Block a user