Fix CodeQL warnings

This commit is contained in:
Justin Hutchings
2023-01-22 19:16:34 +00:00
parent 8059014281
commit f78092ab95
3 changed files with 6 additions and 5 deletions
Generated Vendored
+2 -2
View File
@@ -23832,9 +23832,9 @@ class ComponentDetection {
static makePackageUrl(packageUrlJson) {
var packageUrl = `${packageUrlJson.Scheme}:${packageUrlJson.Type}/`;
if (packageUrlJson.Namespace) {
packageUrl += `${packageUrlJson.Namespace.replace("@", "%40")}/`;
packageUrl += `${packageUrlJson.Namespace.replaceAll("@", "%40")}/`;
}
packageUrl += `${packageUrlJson.Name.replace("@", "%40")}`;
packageUrl += `${packageUrlJson.Name.replaceAll("@", "%40")}`;
if (packageUrlJson.Version) {
packageUrl += `@${packageUrlJson.Version}`;
}
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long