Fixed build errors

This commit is contained in:
erri120 2020-11-18 12:37:31 +01:00
parent 247d19cba0
commit c37248c221
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
4 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@ namespace Wabbajack.Common
}
if (DateTime.Now - startTime > timeout || token.IsCancellationRequested || isDisposed)
return (false, default);
return (false, default)!;
await Task.Delay(100);
}
}

View File

@ -33,7 +33,7 @@ namespace Wabbajack
string? reason = null,
Exception? ex = null)
{
Value = val;
Value = val!;
Succeeded = succeeded;
_reason = reason ?? string.Empty;
Exception = ex;
@ -128,7 +128,7 @@ namespace Wabbajack
public static GetResponse<T> Create(bool successful, T val = default(T), string? reason = null)
{
return new GetResponse<T>(successful, val, reason);
return new GetResponse<T>(successful, val!, reason);
}
#endregion
}

View File

@ -204,7 +204,7 @@ namespace Wabbajack
var prev = prevStorage;
prevStorage = i;
return (prev, i);
});
})!;
}
public static IObservable<T> DelayInitial<T>(this IObservable<T> source, TimeSpan delay, IScheduler scheduler)

View File

@ -105,7 +105,7 @@ namespace Wabbajack
{
return source
.ToProperty(vm, property, initialValue, deferSubscription, RxApp.MainThreadScheduler)
.DisposeWith(vm.CompositeDisposable);
.DisposeWith(vm.CompositeDisposable)!;
}
public static void ToGuiProperty<TRet>(
@ -116,7 +116,7 @@ namespace Wabbajack
TRet initialValue = default,
bool deferSubscription = false)
{
source.ToProperty(vm, property, out result, initialValue, deferSubscription, RxApp.MainThreadScheduler)
source.ToProperty(vm, property, out result!, initialValue, deferSubscription, RxApp.MainThreadScheduler)
.DisposeWith(vm.CompositeDisposable);
}