summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-24 17:24:16 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-24 17:24:16 -0700
commit954034af23f3855320b88a61fb61dbc9e65c464f (patch)
tree4847eb80fa12b9cf2b796eda2b14c35753927d52
parente6e322b1f6c1b5d3ade5da2e1ca5cec608f72517 (diff)
fixing mistyped variable name
-rw-r--r--system/api/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/api/handlers.go b/system/api/handlers.go
index 9e9fbb6..a63e649 100644
--- a/system/api/handlers.go
+++ b/system/api/handlers.go
@@ -49,7 +49,7 @@ func postsHandler(res http.ResponseWriter, req *http.Request) {
offset, err := strconv.Atoi(q.Get("offset")) // int: multiplier of count for pagination (0 default)
if err != nil {
if q.Get("offset") == "" {
- count = 0
+ offset = 0
} else {
res.WriteHeader(http.StatusInternalServerError)
return