def default(value, default):
    """Defaults a variable.

    Parameters
    ----------
    value
        The value to potentially default.
    default
        The default value.

    Returns
    -------
    any
        If ``value`` is ``None``, then ``default`` is returned,
        else ``value`` is returned.
    """

    if value is None:
        return default

    return value