Bug 1337188 - Remove unused return statement from EngineManager::register. r=kit
authorMayank Srivastav <mayanksri18@yahoo.in>
Wed, 15 Feb 2017 00:42:10 +0530
changeset 485049 ee6c8b224924cb972a9b5d09a3ca154cecc665a8
parent 485048 bcc9785affeb9bb0f24f8773cfac3defa75ca518
child 485050 15efe5cf8585cd0952891a3548a9bb7b4d6803ad
push id45611
push userbmo:gasolin@mozilla.com
push dateThu, 16 Feb 2017 01:39:57 +0000
reviewerskit
bugs1337188
milestone54.0a1
Bug 1337188 - Remove unused return statement from EngineManager::register. r=kit
services/sync/modules/engines.js
--- a/services/sync/modules/engines.js
+++ b/services/sync/modules/engines.js
@@ -599,17 +599,16 @@ EngineManager.prototype = {
         this._engines[name] = engine;
       }
     } catch (ex) {
       let name = engineObject || "";
       name = name.prototype || "";
       name = name.name || "";
 
       this._log.error(`Could not initialize engine ${name}`, ex);
-      return engineObject;
     }
   },
 
   unregister(val) {
     let name = val;
     if (val instanceof Engine) {
       name = val.name;
     }