Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use getCacheStat before lock, fixes nodejs/node-v0.x-archive#3821
Previous code did not handle the cache dir's permissions consistently. If the first lock was done as sudo, the cache directory was not user writable. Removed the now unnecessary guard and collapsed the then function.
- Loading branch information