Skip to content

Commit

Permalink
update usages of process.geteuid
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Jul 26, 2021
1 parent 5dffac0 commit 1d4fa65
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/test/lib/tasks/verify_spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-restricted-properties */
require('../../spec_helper')

const path = require('path')
Expand Down
1 change: 1 addition & 0 deletions packages/electron/lib/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ fs = Promise.promisifyAll(fs)
* If running as root on Linux, no-sandbox must be passed or Chrome will not start
*/
const isSandboxNeeded = () => {
// eslint-disable-next-line no-restricted-properties
return (os.platform() === 'linux') && (process.geteuid() === 0)
}

Expand Down
1 change: 1 addition & 0 deletions packages/server/test/e2e/2_cookies_spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-restricted-properties */
import dayjs from 'dayjs'
import parser from 'cookie-parser'
import e2e from '../support/helpers/e2e'
Expand Down
1 change: 1 addition & 0 deletions packages/server/test/integration/cypress_spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-restricted-properties */
require('../spec_helper')

const R = require('ramda')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-restricted-properties */
const fs = require('fs')
const { expect } = require('chai')

Expand Down

0 comments on commit 1d4fa65

Please sign in to comment.