Make sonarcloud happier

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-07-31 11:03:18 +01:00
parent 26ac7462fd
commit d5f4b1bc86
No known key found for this signature in database
GPG key ID: A2B008A5F49F5D0D
4 changed files with 6 additions and 6 deletions

View file

@ -23,7 +23,7 @@ export async function getVectorConfig(relativeLocation = ""): Promise<IConfigOpt
// Handle trailing dot FQDNs
let domain = window.location.hostname.trimEnd();
if (domain[domain.length - 1] === ".") {
if (domain.endsWith(".")) {
domain = domain.slice(0, -1);
}