sindresorhus / find-cache-dir

Finds the common standard cache directory
MIT License
151 stars 24 forks source link

Minor cleanup #25

Closed smondal closed 4 years ago

smondal commented 4 years ago

Cleanup minor changes, already line no 27, we checked if(directory) then do the following task, So we don't need to check again if(directory && ..), So I cleanup this code.