mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Files in src should not use the atom export
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{fs} = require 'atom'
|
||||
fs = require 'fs'
|
||||
ipc = require 'ipc'
|
||||
path = require 'path'
|
||||
Q = require 'q'
|
||||
@@ -181,7 +181,7 @@ class RootView extends View
|
||||
promise = project.openAsync(filePath, {initialLine}) if not editSession
|
||||
|
||||
fileSize = 0
|
||||
fileSize = fs.statSync(absoluteFilePath).size if fs.exists(absoluteFilePath)
|
||||
fileSize = fs.statSync(absoluteFilePath).size if fsUtils.exists(absoluteFilePath)
|
||||
|
||||
Q(editSession ? promise)
|
||||
.then (editSession) =>
|
||||
|
||||
Reference in New Issue
Block a user