Took care of SonarCloud code issues (#1041)
This commit is contained in:
parent
5b32a958dc
commit
0e2fafe396
11 changed files with 27 additions and 69 deletions
|
@ -155,7 +155,7 @@ namespace API.Controllers
|
|||
if (!string.IsNullOrEmpty(key) && mappings.ContainsKey(key))
|
||||
{
|
||||
var part = string.Empty;
|
||||
if (anchor.Attributes["href"].Value.Contains("#"))
|
||||
if (anchor.Attributes["href"].Value.Contains('#'))
|
||||
{
|
||||
part = anchor.Attributes["href"].Value.Split("#")[1];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue