BearND has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/325437

Change subject: Fix a few formatting issues
......................................................................

Fix a few formatting issues

Update a couple of comments and added space for easier reading.

Change-Id: Ie005dc3eeaed738e966734e83e0a8000841fbde0
---
M lib/edit-stream.js
M lib/processor.js
2 files changed, 3 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/trending-edits 
refs/changes/37/325437/1

diff --git a/lib/edit-stream.js b/lib/edit-stream.js
index dbbedec..dc23238 100644
--- a/lib/edit-stream.js
+++ b/lib/edit-stream.js
@@ -12,7 +12,7 @@
 const COMMIT_INTERVAL = 60000;
 
 /**
- * Defines how often to push the commit tot he commit queue.
+ * Defines how often to push the commit to the commit queue.
  * Maps from the topic name to the skip number. If topic name is
  * not present no skipping would be happening.
  *
diff --git a/lib/processor.js b/lib/processor.js
index a11e99f..bb68084 100644
--- a/lib/processor.js
+++ b/lib/processor.js
@@ -22,8 +22,7 @@
 }
 
 /**
- * Purge any pages that do not meet the required
- * criteria
+ * Purge any pages that do not meet the required criteria
  *
  * @ignore
  * @param {Date} date to purge against
@@ -126,7 +125,7 @@
         page.bytes = edit.rev_len - page.rev_len;
         page.bias = contributors.names[contributors.main].edits / page.edits;
         // update
-        pages.set(id,page);
+        pages.set(id, page);
     }
 }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/325437
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie005dc3eeaed738e966734e83e0a8000841fbde0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/trending-edits
Gerrit-Branch: master
Gerrit-Owner: BearND <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to