Browse Source

Delete useless null check from ConsentController

pull/1860/head
KurnakovMaksim 3 years ago
parent
commit
8be7497f2d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Services/Identity/Identity.API/Controllers/ConsentController.cs

+ 1
- 1
src/Services/Identity/Identity.API/Controllers/ConsentController.cs View File

@ -58,7 +58,7 @@
response = ConsentResponse.Denied; response = ConsentResponse.Denied;
} }
// user clicked 'yes' - validate the data // 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 the user consented to some scope, build the response model
if (model.ScopesConsented != null && model.ScopesConsented.Any()) if (model.ScopesConsented != null && model.ScopesConsented.Any())


Loading…
Cancel
Save