consensed if/else statement

This commit is contained in:
Justin Reid 2017-03-09 17:39:20 -07:00
parent 3efcef6229
commit 9cd4b974e4

View file

@ -384,9 +384,7 @@ func (l *StatsDListener) handlePacket(packet []byte, e chan<- Events) {
valueStr, statType := components[0], components[1]
var relative = false
if strings.Index(valueStr, "+") == 0 {
relative = true
} else if strings.Index(valueStr, "-") == 0 {
if strings.Index(valueStr, "+") == 0 || strings.Index(valueStr, "-") == 0 {
relative = true
}