Remove "#nullable enable" directive and unnecessary operators

This commit is contained in:
Umar Bolatov 2020-01-27 19:33:26 -08:00 committed by rockstardev
parent 23aaf794ef
commit 0074790684

View File

@ -196,11 +196,9 @@ namespace BTCPayServer.Services.Rates
throw new APIException(text);
}
api.ProcessResponse(new InternalHttpWebResponse(webHttpResponse));
#nullable enable
Action<IAPIRequestMaker, RequestMakerState, object>? requestStateChanged = RequestStateChanged;
if (requestStateChanged != null)
if (RequestStateChanged != null)
{
requestStateChanged!(this, RequestMakerState.Finished, text);
RequestStateChanged(this, RequestMakerState.Finished, text);
return text;
}
return text;