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

Deduplicate pathToVault.resolve("d").resolve("xx").resolve("yyyyyy...y") #100

Open
overheadhunter opened this issue Mar 16, 2021 · 0 comments

Comments

@overheadhunter
Copy link
Member

The expression pathToVault.resolve(Constants.DATA_DIR_NAME).resolve(dirHash.substring(0, 2)).resolve(dirHash.substring(2)) (or similar) is used in several places in this project. We should find a (clean!) way to deduplicate this (possibly including the dirHash calculation).

By "clean", I mean not just a new util class. Maybe we find some existing place, that can be injected (or is already present) in all required places.

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