From d94cd94c0d0cefbb176460bb675f81034333eb26 Mon Sep 17 00:00:00 2001 From: ferhat elmas Date: Thu, 16 Mar 2017 10:50:22 +0100 Subject: Typo fixes --- system/api/analytics/init.go | 2 +- system/api/push.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'system/api') diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go index f24425b..caa187a 100644 --- a/system/api/analytics/init.go +++ b/system/api/analytics/init.go @@ -137,7 +137,7 @@ func serve() { // ChartData returns the map containing decoded javascript needed to chart RANGE // days of data by day func ChartData() (map[string]interface{}, error) { - // set thresholds for today and the RANGE-1 days preceeding + // set thresholds for today and the RANGE-1 days preceding times := [RANGE]time.Time{} dates := [RANGE]string{} now := time.Now() diff --git a/system/api/push.go b/system/api/push.go index e936ef7..2b68d5b 100644 --- a/system/api/push.go +++ b/system/api/push.go @@ -35,7 +35,7 @@ func push(res http.ResponseWriter, req *http.Request, pt func() interface{}, dat err := pusher.Push(v.String(), nil) // check for error, "http2: recursive push not allowed" - // and return, supressing a log message + // and return, suppressing a log message if err != nil && err.Error() == http2.ErrRecursivePush.Error() { return true } -- cgit v1.2.3