Skip to content

Commit

Permalink
#15 - Fixed issue: 'domains' is never reassigned. Use 'const' instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruKurz committed Jun 24, 2017
1 parent 83f3d80 commit 69b7803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-analytics/client/loadScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Template.body.onRendered(() => {
if (piwikDomains) {
// array
const domainsArray = piwikDomains.split(/\n/);
let domains = [];
const domains = [];
for (let i = 0; i < domainsArray.length; i++) {
// only push domain if it contains a non whitespace character.
if (/\S/.test(domainsArray[i])) {
Expand Down

0 comments on commit 69b7803

Please sign in to comment.