Skip to content

Commit 45f2b64

Browse files
acoumbAndyButland
andauthored
Update src/Umbraco.Cms.Integrations.Crm.Dynamics/Controllers/FormsController.cs
Co-authored-by: Andy Butland <[email protected]>
1 parent 839d3fc commit 45f2b64

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/Umbraco.Cms.Integrations.Crm.Dynamics/Controllers/FormsController.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,10 @@ public async Task<string> GetAccessToken([FromBody] OAuthRequestDto authRequestD
120120

121121
return result;
122122

123-
} else
124-
{
125-
var errorResult = await response.Content.ReadAsStringAsync();
126-
var errorDto = JsonConvert.DeserializeObject<ErrorDto>(errorResult);
123+
var errorResult = await response.Content.ReadAsStringAsync();
124+
var errorDto = JsonConvert.DeserializeObject<ErrorDto>(errorResult);
127125

128-
return "Error: " + errorDto.ErrorDescription;
129-
}
126+
return "Error: " + errorDto.ErrorDescription;
130127
}
131128

132129
[HttpGet]

0 commit comments

Comments
 (0)