go: discord/backend: Initialize map to prevent crash

master
Luther Wen Xu 2019-10-20 17:51:32 +07:00
parent 38e4f1facc
commit 1ddb32e12b
Signed by: chanbakjsd
GPG Key ID: B7D77E3E9D102B70
1 changed files with 1 additions and 1 deletions

@ -9,7 +9,7 @@ import (
"TerraOceanBot/discord/config" "TerraOceanBot/discord/config"
) )
var trustCache map[string]float64 var trustCache = make(map[string]float64)
var ErrNotMember = errors.New("trust: only members have trust value") var ErrNotMember = errors.New("trust: only members have trust value")