Use pointer receiver more offen
This commit is contained in:
parent
6999b4e728
commit
c7569b5e54
59 changed files with 688 additions and 672 deletions
|
|
@ -71,7 +71,7 @@ func GetTeamsStats(t *Team) (interface{}, error) {
|
|||
sLvl.Total += 1
|
||||
|
||||
if t != nil {
|
||||
if b, _ := t.HasSolved(exercice); b {
|
||||
if b := t.HasSolved(exercice); b != nil {
|
||||
solved += 1
|
||||
sLvl.Solved += 1
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue