From bbf693006110b804bc2a7c7c2ed9e662b4db6aba Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 17 Dec 2014 10:02:34 -0800 Subject: [PATCH] :lipstick: --- src/browser/squirrel-update.coffee | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/browser/squirrel-update.coffee b/src/browser/squirrel-update.coffee index 96e28a782..f5be9e196 100644 --- a/src/browser/squirrel-update.coffee +++ b/src/browser/squirrel-update.coffee @@ -178,9 +178,11 @@ updateShortcuts = (callback) -> # and keep it deleted if it was fs.exists desktopShortcutPath, (desktopShortcutExists) -> createShortcuts -> - return callback() unless desktopShortcutExists - # Remove the unwanted desktop shortcut that was recreated - fs.unlink(desktopShortcutPath, callback) + if desktopShortcutExists + callback() + else + # Remove the unwanted desktop shortcut that was recreated + fs.unlink(desktopShortcutPath, callback) else createShortcuts(callback)