Skip to content

Commit

Permalink
chore(resolve.js): Add cache opts check for temp folder check
Browse files Browse the repository at this point in the history
  • Loading branch information
Prash74 committed Aug 12, 2019
1 parent 8612c31 commit 09d3fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function resolve(uri, opts = {}) {
})

resolutions.push(async () => {
if (isBrowser) { return null }
if (isBrowser || !opts.cache) { return null }
try {
const cachePath = path.join(os.tmpdir(), 'aid', did.identifier, 'ddo.json')
const stats = await pify(stat)(cachePath)
Expand Down

0 comments on commit 09d3fdc

Please sign in to comment.