From 81658d78ce82fcb2babb21a9d3cc19ea50183357 Mon Sep 17 00:00:00 2001 From: kozbial Date: Fri, 16 Jul 2021 11:07:37 -0700 Subject: [PATCH] clang-format core/component_manager.js --- core/component_manager.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/core/component_manager.js b/core/component_manager.js index cbc4baa60..31b661e8a 100644 --- a/core/component_manager.js +++ b/core/component_manager.js @@ -109,12 +109,13 @@ ComponentManager.prototype.removeComponent = function(id) { */ ComponentManager.prototype.addCapability = function(id, capability) { if (!this.getComponent(id)) { - throw Error('Cannot add capability, "' + capability + '". Plugin "' + - id + '" has not been added to the ComponentManager'); + throw Error( + 'Cannot add capability, "' + capability + '". Plugin "' + id + + '" has not been added to the ComponentManager'); } if (this.hasCapability(id, capability)) { - console.warn('Plugin "' + id + 'already has capability "' + - capability + '"'); + console.warn( + 'Plugin "' + id + 'already has capability "' + capability + '"'); return; } capability = String(capability).toLowerCase(); @@ -131,12 +132,14 @@ ComponentManager.prototype.addCapability = function(id, capability) { */ ComponentManager.prototype.removeCapability = function(id, capability) { if (!this.getComponent(id)) { - throw Error('Cannot remove capability, "' + capability + '". Plugin "' + - id + '" has not been added to the ComponentManager'); + throw Error( + 'Cannot remove capability, "' + capability + '". Plugin "' + id + + '" has not been added to the ComponentManager'); } if (!this.hasCapability(id, capability)) { - console.warn('Plugin "' + id + 'doesn\'t have capability "' + - capability + '" to remove'); + console.warn( + 'Plugin "' + id + 'doesn\'t have capability "' + capability + + '" to remove'); return; } capability = String(capability).toLowerCase();