no need to initialize output as 0

This commit is contained in:
Arya Kiran 2023-01-18 21:26:37 +05:30
parent be59d303d0
commit 3c1d2770cb
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -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)