Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D35884
This commit is contained in:
@@ -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;
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user