Merge pull request #125 from Shugyousha/simplereturn
Remove unneeded else clauses
This commit is contained in:
commit
560990d29c
@ -48,10 +48,7 @@ func (t *termSummaryDecr) Merge(key, existing []byte) ([]byte, error) {
|
||||
tfr.freq--
|
||||
if tfr.freq > 0 {
|
||||
return tfr.Value(), nil
|
||||
} else {
|
||||
return nil, nil
|
||||
}
|
||||
} else {
|
||||
return nil, nil
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user