Bug 1561435 - Format devtools/client/, a=automatic-formatting

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
This commit is contained in:
Victor Porof
2019-07-05 11:24:38 +02:00
parent e1ef9c4c20
commit b7732ae890
2792 changed files with 96115 additions and 52865 deletions

View File

@@ -24,7 +24,7 @@ define(function(require, exports, module) {
return [];
}
if (typeof (object) == "string") {
if (typeof object == "string") {
return [];
}
@@ -59,23 +59,21 @@ define(function(require, exports, module) {
},
getLabel: function(object) {
return (object instanceof ObjectProperty) ?
object.name : null;
return object instanceof ObjectProperty ? object.name : null;
},
getValue: function(object) {
return (object instanceof ObjectProperty) ?
object.value : null;
return object instanceof ObjectProperty ? object.value : null;
},
getKey: function(object) {
return (object instanceof ObjectProperty) ?
object.name : null;
return object instanceof ObjectProperty ? object.name : null;
},
getType: function(object) {
return (object instanceof ObjectProperty) ?
typeof object.value : typeof object;
return object instanceof ObjectProperty
? typeof object.value
: typeof object;
},
};