From 7800180d3b7d86b2767b90bdcfd1dfeed2e2d51d Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Tue, 15 Jan 2019 14:57:09 -0800 Subject: [PATCH] Fix linting errors --- modules/client/main/App.js | 2 +- modules/utils/stats.js | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/client/main/App.js b/modules/client/main/App.js index 04dd5c1..df98847 100644 --- a/modules/client/main/App.js +++ b/modules/client/main/App.js @@ -313,7 +313,7 @@ export default class App extends React.Component {

The unpkg CDN is powered by{' '} Cloudflare, one of the - world's largest and fastest cloud network platforms.{' '} + world's largest and fastest cloud network platforms.{' '} {hasStats && ( In the past month, Cloudflare served over{' '} diff --git a/modules/utils/stats.js b/modules/utils/stats.js index aadfb4b..623987a 100644 --- a/modules/utils/stats.js +++ b/modules/utils/stats.js @@ -1,17 +1,17 @@ // import data from './data'; import * as cloudflare from './cloudflare'; -// export function createDayKey(date) { -// return `${date.getUTCFullYear()}-${date.getUTCMonth()}-${date.getUTCDate()}`; -// } +export function createDayKey(date) { + return `${date.getUTCFullYear()}-${date.getUTCMonth()}-${date.getUTCDate()}`; +} -// export function createHourKey(date) { -// return `${createDayKey(date)}-${date.getUTCHours()}`; -// } +export function createHourKey(date) { + return `${createDayKey(date)}-${date.getUTCHours()}`; +} -// export function createMinuteKey(date) { -// return `${createHourKey(date)}-${date.getUTCMinutes()}`; -// } +export function createMinuteKey(date) { + return `${createHourKey(date)}-${date.getUTCMinutes()}`; +} // function createScoresMap(array) { // const map = {};