It could be. The reason for the line is simply to keep the Google Closure compiler happy. Playing in the Python REPL seems to suggest that inversion decrements a number. Maybe doing that and adding a test would be preferable?