From 55f4a7b63e65eb39e89d97d98f856b744c791835 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Sun, 23 Feb 2014 17:26:49 -0800 Subject: [PATCH] Remove unneeded exists checks --- spec/config-spec.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/config-spec.coffee b/spec/config-spec.coffee index 13d5e5b94..0dfe87b60 100644 --- a/spec/config-spec.coffee +++ b/spec/config-spec.coffee @@ -217,7 +217,7 @@ describe "Config", -> expect(fs.existsSync(atom.config.configDirPath)).toBeFalsy() afterEach -> - fs.removeSync(dotAtomPath) if fs.existsSync(dotAtomPath) + fs.removeSync(dotAtomPath) describe "when the configDirPath doesn't exist", -> it "copies the contents of dot-atom to ~/.atom", -> @@ -243,7 +243,7 @@ describe "Config", -> expect(fs.existsSync(atom.config.configDirPath)).toBeFalsy() afterEach -> - fs.removeSync(dotAtomPath) if fs.existsSync(dotAtomPath) + fs.removeSync(dotAtomPath) describe "when the config file contains valid cson", -> beforeEach -> @@ -286,7 +286,7 @@ describe "Config", -> afterEach -> atom.config.unobserveUserConfig() - fs.removeSync(dotAtomPath) if fs.existsSync(dotAtomPath) + fs.removeSync(dotAtomPath) describe "when the config file changes to contain valid cson", -> it "updates the config data", ->