def checkInnerOuter(firstAngle, lastAngle):
    if  firstAngle == None or lastAngle == None:
        return True
    dirAngle = degrees(firstAngle) - degrees(lastAngle)

    if dirAngle > 180:
        dirAngle = dirAngle - 180
    elif dirAngle < -180:
        dirAngle= -180 - dirAngle

    if dirAngle > 0:
        return True

    if dirAngle <= 0:
        return False
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/extras/outline.py/checkInnerOuter/swapped operands of `-`