parse_refspec.py: Refactor "if" statement

To have all cases clearly exclusive. Also, fix indentation.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Ie94996c08df0b637c3a93ec28cb423b9dcb8e905
1 file changed