From 3c1d2770cb0f09c4e628a9a09b1f853e4958d251 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Wed, 18 Jan 2023 21:26:37 +0530 Subject: [PATCH] no need to initialize output as 0 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 63cb8bd..1a82320 100644 --- a/main.go +++ b/main.go @@ -109,7 +109,7 @@ func main() { usersonlinestr := string(usersonline) usersonlinededup := Dedup(usersonlinestr) outputa := int(strings.Count(usersonlinededup, " ")) - var output int = 0 + var output int output = outputa + 1 if err != nil { log.Error(err)