]> khamidou — GitHub mirrors - electron.git/commitdiff
win: Fix compiler warning
authorCheng Zhao <zcbenz@gmail.com>
Thu, 22 Oct 2015 08:55:54 +0000 (16:55 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 22 Oct 2015 08:55:54 +0000 (16:55 +0800)
atom/browser/api/atom_api_app.cc

index fa2a97de4d90293b66da49f3c062215ffcecf5d0..a9011c6e2e75ac2c0e02d1f9b89fc87e88905c46 100644 (file)
@@ -310,14 +310,15 @@ bool App::MakeSingleInstance(
     process_singleton_startup_lock_->Unlock();
 
   switch (process_singleton_->NotifyOtherProcessOrCreate()) {
-    case ProcessSingleton::NotifyResult::PROCESS_NONE:
-      return false;
     case ProcessSingleton::NotifyResult::LOCK_ERROR:
     case ProcessSingleton::NotifyResult::PROFILE_IN_USE:
     case ProcessSingleton::NotifyResult::PROCESS_NOTIFIED:
       process_singleton_.reset();
       process_singleton_startup_lock_.reset();
       return true;
+    case ProcessSingleton::NotifyResult::PROCESS_NONE:
+    default:  // Shouldn't be needed, but VS warns if it is not there.
+      return false;
   }
 }