review tweaks

pull/34/head
Martin Kobetic 2014-06-24 17:19:50 +00:00
parent 32e22b3bb6
commit 8dd18bd620
1 changed files with 5 additions and 1 deletions

6
db.go
View File

@ -577,7 +577,11 @@ type Stats struct {
func (s *Stats) Sub(other *Stats) Stats {
var diff Stats
if s == nil {
return diff
if other == nil {
return diff
} else {
return *other
}
}
diff = *s
if other == nil {