Browse Source

Fix compilation error

Cheng Zhao 9 years ago
parent
commit
f081c77422
1 changed files with 1 additions and 1 deletions
  1. 1 1
      atom/browser/auto_updater_mac.mm

+ 1 - 1
atom/browser/auto_updater_mac.mm

@@ -97,9 +97,9 @@ void AutoUpdater::CheckForUpdates() {
 }
 
 void AutoUpdater::QuitAndInstall() {
+  Delegate* delegate = AutoUpdater::GetDelegate();
   if (g_update_available) {
     [[g_updater relaunchToInstallUpdate] subscribeError:^(NSError* error) {
-      Delegate* delegate = AutoUpdater::GetDelegate();
       if (delegate)
         delegate->OnError(base::SysNSStringToUTF8(error.localizedDescription));
     }];