no need to initialize output as 0
This commit is contained in:
parent
be59d303d0
commit
3c1d2770cb
2
main.go
2
main.go
@ -109,7 +109,7 @@ func main() {
|
|||||||
usersonlinestr := string(usersonline)
|
usersonlinestr := string(usersonline)
|
||||||
usersonlinededup := Dedup(usersonlinestr)
|
usersonlinededup := Dedup(usersonlinestr)
|
||||||
outputa := int(strings.Count(usersonlinededup, " "))
|
outputa := int(strings.Count(usersonlinededup, " "))
|
||||||
var output int = 0
|
var output int
|
||||||
output = outputa + 1
|
output = outputa + 1
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user