chore: remove unnecessary else branch

This commit is contained in:
Jerry Wang
2020-08-14 19:23:37 -07:00
parent 4e3a42e02f
commit cc54973fa2

View File

@ -9,10 +9,8 @@ func moveZeroes(nums []int) {
if nums[i] != 0 {
if i != j {
nums[i], nums[j] = nums[j], nums[i]
j++
} else {
j++
}
j++
}
}
}