Remove unneeded else clauses
This commit is contained in:
parent
68a2b9614d
commit
e3a2d3b58b
|
@ -48,10 +48,7 @@ func (t *termSummaryDecr) Merge(key, existing []byte) ([]byte, error) {
|
||||||
tfr.freq--
|
tfr.freq--
|
||||||
if tfr.freq > 0 {
|
if tfr.freq > 0 {
|
||||||
return tfr.Value(), nil
|
return tfr.Value(), nil
|
||||||
} else {
|
|
||||||
return nil, nil
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
return nil, nil
|
|
||||||
}
|
}
|
||||||
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user