From da24d3ad6b697c09bd4c12c2c3f8ea3b2fa84b73 Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Sat, 24 Feb 2018 12:39:32 -0300 Subject: [PATCH] Fix InstanceMax typo --- handlers/new_instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/new_instance.go b/handlers/new_instance.go index 711191f..266a79b 100644 --- a/handlers/new_instance.go +++ b/handlers/new_instance.go @@ -46,7 +46,7 @@ func NewInstance(rw http.ResponseWriter, req *http.Request) { return } - if playground.InstancesMax > 0 && len(instances) > playground.MaxInstances { + if playground.MaxInstances > 0 && len(instances) > playground.MaxInstances { log.Println(err) rw.WriteHeader(http.StatusConflict) return