Would be slightly clearer as `distance + 1 : distance - 1` since you're not actually going to use the (local) distance value again.