Skip to content

Commit

Permalink
chore: fix use single var declarator
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <[email protected]>
  • Loading branch information
setchy committed Apr 15, 2024
1 parent be689a3 commit 4ed1bc4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"noUnusedTemplateLiteral": "off",
"noUselessElse": "off",
"useDefaultParameterLast": "warn",
"useTemplate": "off",
"useSingleVarDeclarator": "off"
"useTemplate": "off"
},
"suspicious": {
"noDoubleEquals": "off",
Expand Down
14 changes: 7 additions & 7 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7168,8 +7168,8 @@ export function convertOSQueryResults(
}

function purlFromUrlString(type, repoUrl, version) {
let namespace = "",
name;
let namespace = "";
let name;
if (repoUrl && repoUrl.startsWith("http")) {
const url = new URL(repoUrl);
const pathnameParts = url.pathname.split("/");
Expand Down Expand Up @@ -7919,11 +7919,11 @@ export async function extractJarArchive(jarFile, tempDir, jarNSMapping = {}) {
// META-INF/maven/${groupId}/${artifactId}/pom.properties
// see https://maven.apache.org/shared/maven-archiver/index.html
const pomProperties = getPomPropertiesFromMavenDir(mavenDir);
let group = pomProperties["groupId"],
name = pomProperties["artifactId"],
version = pomProperties["version"],
confidence = 1,
technique = "manifest-analysis";
let group = pomProperties["groupId"];
let name = pomProperties["artifactId"];
let version = pomProperties["version"];
let confidence = 1;
let technique = "manifest-analysis";
if (
(!group || !name || !version) &&
SEARCH_MAVEN_ORG &&
Expand Down

0 comments on commit 4ed1bc4

Please sign in to comment.