Fix CodeQL warnings
This commit is contained in:
+2
-2
@@ -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}`;
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user