Delete useless null check from ConsentController

This commit is contained in:
KurnakovMaksim 2022-02-19 21:32:59 +09:00
parent 073f7a7e60
commit 8be7497f2d

View File

@ -58,7 +58,7 @@
response = ConsentResponse.Denied;
}
// user clicked 'yes' - validate the data
else if (model.Button == "yes" && model != null)
else if (model.Button == "yes")
{
// if the user consented to some scope, build the response model
if (model.ScopesConsented != null && model.ScopesConsented.Any())