From da945de5f5d5248e56ca967907c6529ae9a707c2 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 18 Feb 2014 11:01:24 -0800 Subject: [PATCH] Only require init script when it exists --- src/atom.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atom.coffee b/src/atom.coffee index 500f5c3c2..2f1cfaffd 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -502,7 +502,7 @@ class Atom extends Model requireUserInitScript: -> if userInitScriptPath = @getUserInitScriptPath() try - require userInitScriptPath + require(userInitScriptPath) if fs.isFileSync(userInitScriptPath) catch error console.error "Failed to load `#{userInitScriptPath}`", error.stack, error