• Alisdair McDiarmid's avatar
    main: Pass untyped nil for missing creds source · f1f24df7
    Alisdair McDiarmid authored
    If we are unable to create a credentials source for some reason, we can
    rely on the disco object to nil-check it before calling any of its
    methods. However to do this we must ensure that we pass untyped nil.
    This commit rearranges the initialization to ensure that this happens.
    
    The user-facing bug that triggered this work is that running init when
    the HOME environment variable is unset would result in a panic on macOS.
    f1f24df7