From 936fe9f2f5a0b766386d963a93f2de94f3973203 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Fri, 24 May 2019 06:23:54 +1000 Subject: [PATCH] Minor comment tweaks --- common/utilities.js | 2 +- server/news.js | 2 +- src/actions/accounts.js | 2 +- src/components/panels/news_panel.jsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/utilities.js b/common/utilities.js index aabf636..0d898ee 100644 --- a/common/utilities.js +++ b/common/utilities.js @@ -4,7 +4,7 @@ function validateEmail(email) { return emailExpression.test(email); } -let excluded = [ //errors that should not be logged +let excluded = [ //messages that should not be logged 'Not enough gold', 'Not enough recruits', 'Not enough soldiers', diff --git a/server/news.js b/server/news.js index f35e658..4442d85 100644 --- a/server/news.js +++ b/server/news.js @@ -16,7 +16,7 @@ const newsRequest = () => (req, res) => { } //build the object to send - let json = {} + let json = {} //TODO: caching //send each file as json for (let i = 0; i < max; i++) { diff --git a/src/actions/accounts.js b/src/actions/accounts.js index 1253bb3..7032105 100644 --- a/src/actions/accounts.js +++ b/src/actions/accounts.js @@ -22,5 +22,5 @@ export function sessionChange(token) { return { type: SESSIONCHANGE, token: token - } + }; } \ No newline at end of file diff --git a/src/components/panels/news_panel.jsx b/src/components/panels/news_panel.jsx index b37a77a..ad99ebe 100644 --- a/src/components/panels/news_panel.jsx +++ b/src/components/panels/news_panel.jsx @@ -20,7 +20,7 @@ class NewsPanel extends React.Component { ); } - fetchNews(max = 3) { + fetchNews(max) { //build the XHR let xhr = new XMLHttpRequest();