Skip to content

Commit

Permalink
fix: linting (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Aug 15, 2022
1 parent 7c0c1f3 commit 816bb74
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
8 changes: 6 additions & 2 deletions lib/common/owner-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ const update = (path, uid, gid) => {
if (uid === stat.uid && gid === stat.gid) {
return
}
} catch (err) {}
} catch {
// ignore errors
}

try {
fs.chownSync(path, uid, gid)
} catch (err) {}
} catch {
// ignore errors
}
}

// accepts a `path` and the `owner` property of an options object and normalizes
Expand Down
8 changes: 6 additions & 2 deletions lib/common/owner.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ const update = async (path, uid, gid) => {
if (uid === stat.uid && gid === stat.gid) {
return
}
} catch (err) {}
} catch {
// ignore errors
}

try {
await fs.chown(path, uid, gid)
} catch (err) {}
} catch {
// ignore errors
}
}

// accepts a `path` and the `owner` property of an options object and normalizes
Expand Down
4 changes: 3 additions & 1 deletion lib/with-temp-dir.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const withTempDir = async (root, fn, opts) => {

try {
await rm(target, { force: true, recursive: true })
} catch {}
} catch {
// ignore errors
}

if (err) {
throw err
Expand Down

0 comments on commit 816bb74

Please sign in to comment.