Index: tracing/tracing/extras/importer/gcloud_trace/gcloud_trace_importer.html |
diff --git a/tracing/tracing/extras/importer/gcloud_trace/gcloud_trace_importer.html b/tracing/tracing/extras/importer/gcloud_trace/gcloud_trace_importer.html |
index c90b20542fcb57e97da5472ae5734836e03dab80..2b9d8d8f37e6ccddc67c9f5c34d9ac0b3b673ccd 100644 |
--- a/tracing/tracing/extras/importer/gcloud_trace/gcloud_trace_importer.html |
+++ b/tracing/tracing/extras/importer/gcloud_trace/gcloud_trace_importer.html |
@@ -24,13 +24,13 @@ tr.exportTo('tr.e.importer.gcloud_trace', function() { |
* @return {boolean} Whether obj looks like the JSON output from Cloud Trace. |
*/ |
GcloudTraceImporter.canImport = function(eventData) { |
- if (typeof(eventData) !== 'string' && !(eventData instanceof String)) |
+ if (typeof(eventData) !== 'string' && !(eventData instanceof String)) { |
return false; |
+ } |
// Slice the data so we don't potentially do a replace on a gigantic string. |
var normalizedEventData = eventData.slice(0, 20).replace(/\s/g, ''); |
- if (normalizedEventData.length < 14) |
- return false; |
+ if (normalizedEventData.length < 14) return false; |
return normalizedEventData.slice(0, 14) === '{"projectId":"'; |
}; |