Skip to content

Commit bdd6350

Browse files
committed
check bool
Signed-off-by: Mohamed Hamza <[email protected]>
1 parent e9b56b6 commit bdd6350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/stats/export.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (vg *varGroup) publish(name string, v expvar.Var) {
101101
defer vg.Unlock()
102102

103103
// Check if the variable is already registered
104-
if ok := vg.vars[name]; ok != nil {
104+
if _, ok := vg.vars[name]; ok {
105105
return
106106
}
107107

0 commit comments

Comments
 (0)