From 6abb5a2390a33edd3ef6cf4fd9a6c2bbc46e8fea Mon Sep 17 00:00:00 2001 From: probablycorey Date: Thu, 10 Oct 2013 10:15:54 -0700 Subject: [PATCH] Files in `src` should not use the atom export --- src/root-view.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/root-view.coffee b/src/root-view.coffee index d7ab09617..1329821ed 100644 --- a/src/root-view.coffee +++ b/src/root-view.coffee @@ -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) =>