This commit is contained in:
David Wilson 2018-08-21 06:50:37 -07:00
parent 0a7b62cd06
commit 8cd788e00f
2 changed files with 1 additions and 5 deletions

View File

@ -20,7 +20,7 @@ module.exports = function () {
return appResourcePath
}
function isAtomRepoPath(repoPath) {
function isAtomRepoPath (repoPath) {
let packageJsonPath = path.join(repoPath, 'package.json')
if (fs.statSyncNoException(packageJsonPath)) {
let packageJson = CSON.readFileSync(packageJsonPath)

View File

@ -4,8 +4,6 @@ if (typeof snapshotResult !== 'undefined') {
const startTime = Date.now()
const electron = require('electron')
const fs = require('fs')
const path = require('path')
const yargs = require('yargs')
const getDevResourcePath = require('./get-dev-resource-path')
@ -22,8 +20,6 @@ if (args.resourcePath) {
resourcePath = args.resourcePath
} else {
const stableResourcePath = path.dirname(path.dirname(__dirname))
const defaultRepositoryPath = path.join(electron.app.getPath('home'), 'github', 'atom')
if (args.dev || args.test || args.benchmark || args.benchmarkTest) {
resourcePath = getDevResourcePath() || stableResourcePath
} else {