def strip_trailing_slash(value):
    """Strip trailing slash if exists.

    :param str value: The value to strip trailing slash from.
    :returns: Path without a trailing slash

    """
    if value.endswith('/'):
        return value[:-1]
    return value
