refactor: if-return-else-return to if-return and return

This commit is contained in:
ShuheiKubota 2019-11-18 18:45:06 +09:00
parent 07f39afa0a
commit e6fe9c8e08

View file

@ -219,14 +219,14 @@ func toInt(s string, max int) int32 {
i = 100
}
return int32(math.Trunc(float64(max*i) / 100))
} else {
}
i, err := strconv.Atoi(s)
if err != nil {
return 0
}
return int32(i)
}
}
func findFirstTarget(title string, wins []*window, ancestors []int) *window {
if title == "" {