Make sonarcloud happier
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user