mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Discourage people from using temp directly
It's better if we fs.realpathSync the path returned by the temp module. Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
committed by
Nathan Sobo
parent
04d8b9bb86
commit
336f6425da
@@ -5,7 +5,6 @@ import dedent from 'dedent'
|
||||
import electron from 'electron'
|
||||
import fs from 'fs-plus'
|
||||
import path from 'path'
|
||||
import temp from 'temp'
|
||||
import AtomApplication from '../../src/main-process/atom-application'
|
||||
import parseCommandLine from '../../src/main-process/parse-command-line'
|
||||
|
||||
@@ -367,7 +366,7 @@ describe('AtomApplication', function () {
|
||||
}
|
||||
|
||||
function makeTempDir (name) {
|
||||
return fs.realpathSync(temp.mkdirSync(name))
|
||||
return fs.realpathSync(require('temp').mkdirSync(name))
|
||||
}
|
||||
|
||||
let channelIdCounter = 0
|
||||
|
||||
Reference in New Issue
Block a user