mv: remove an "if" that's always true
commit42de4b169c5de9d3f22eb1f988aa5b69447951b2
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 10 Aug 2014 02:29:32 +0000 (10 09:29 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Sep 2014 21:59:43 +0000 (3 14:59 -0700)
tree6d8e23e172ebec711698de49181e3ae9c0b46e89
parent3af05a6d0da3addbcc050f3b1a1ac379e6c4025c
mv: remove an "if" that's always true

This is inside an "else" block of "if (last - first < 1)", so we know
that "last - first >= 1" when we come here. No need to check
"last - first > 0".

While at there, save "argc + last - first" to a variable to shorten
the statements a bit.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/mv.c