style: fix caching not working if cache directory doesn't already exist by Bo98 · Pull Request #21433 · Homebrew/brew
Pull request overview
This pull request fixes a bug where RuboCop caching was disabled if the cache directory didn't already exist, even when the parent directory was writable and the cache directory could be created.
Changes:
- Extract cache directory path to a separate variable for clarity
- Update the conditional logic to enable caching when the cache directory doesn't exist but can be created (parent is writable)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.