mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
Catch ENOENT in clear_cache
There's no need for `clear_cache` to fail if the cache doesn't exist, either because we call `clear_cache` twice or because no cache was previously written on this particular repo.
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