Skip to content
  • Anton Shestakov's avatar
    next: refactor two if blocks into an if-elif block · 94aed9c7ce69
    Anton Shestakov authored
    We already checked the value of `needevolve and opts['evolve']` in the first if
    block above. In the first one it need to be True, in the second it needs to be
    False for the statements to execute. Since not(a or b) = not a and not b, we
    can join the second if block to the first one with an elif while dropping the
    explicit check.
    
    For me, this works better, because we're doing the same thing in both of these
    blocks (checking if working copy is dirty or not).
    94aed9c7ce69