def remove_slash(path: str) -> str:
    """Remove slash in the end of path if present.

    Args:
        path (str): Path.

    Returns:
        str: Path without slash.
    """
    if path[-1] == "/":
        path = path[:-1]
    return path