Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 Rubo Fixes related to File in task_support.rb #693

Open
Crankums opened this issue Mar 24, 2023 · 0 comments
Open

2 Rubo Fixes related to File in task_support.rb #693

Crankums opened this issue Mar 24, 2023 · 0 comments
Assignees

Comments

@Crankums
Copy link
Contributor

https://codeclimate.com/repos/56def0a7924f900060002dac/pull/692

Use atomic file operation method FileUtils.rm_f.
File.delete(cache_path) if File.exists?(cache_path)

Remove unnecessary existence check File.exists?.
File.delete(cache_path) if File.exists?(cache_path)

@Crankums Crankums self-assigned this Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant