Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Unified Diff: tracing/tracing/extras/importer/gcloud_trace/gcloud_trace_importer.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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":"';
};
« no previous file with comments | « tracing/tracing/extras/importer/etw/thread_parser.html ('k') | tracing/tracing/extras/importer/gzip_importer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698