Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Conversation

@allenwei
Copy link

Asset::Cache.cache alway return empty {}.

@cache ||= YAML.load_file(cache_path) rescue {}

if it can not load yml from cache path, this method alway return {}, rather than @cache variable

so it's a easy fix

@cache ||= (YAML.load_file(cache_path) rescue {})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant