Skip to content

Commit

Permalink
Merge branch 'main' into dependency-update
Browse files Browse the repository at this point in the history
  • Loading branch information
meza authored Oct 8, 2024
2 parents bbfdf45 + 6fefbcd commit 458a58b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
4 changes: 1 addition & 3 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
"indentWidth": 2,
"lineWidth": 120,
"lineEnding": "lf",
"include": ["**/*.ts", "**/*.json"],
"ignore": [".cache/**", "**/*.snap"],
"attributePosition": "auto"
},
"files": { "include": ["**/*.ts", "**/*.json"] },
"files": { "include": ["**/*.ts", "**/*.json"], "ignore": [".cache/**", "**/*.snap"] },
"linter": {
"enabled": true,
"rules": {
Expand Down
46 changes: 24 additions & 22 deletions src/actions/scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,28 +132,30 @@ export const processScanResults = (
);
}

unsure.push({
configuredMod: findInConfiguration(
halfMatching[0].configured?.type,
halfMatching[0].configured?.id,
configuration
),
configuredInstallation: installationIndex,
newMod: {
type: halfMatching[0].local.platform,
id: halfMatching[0].local.modId,
name: halfMatching[0].remote.name
} as Mod,
installation: {
hash: halfMatching[0].local.mod.hash,
fileName: halfMatching[0].local.mod.fileName,
name: halfMatching[0].remote.name,
type: halfMatching[0].local.platform,
id: halfMatching[0].local.modId,
releasedOn: halfMatching[0].local.mod.releaseDate,
downloadUrl: halfMatching[0].local.mod.downloadUrl
} as ModInstall
});
if (halfMatching[0].remote) {
unsure.push({
configuredMod: findInConfiguration(
halfMatching[0].configured?.type,
halfMatching[0].configured?.id,
configuration
),
configuredInstallation: installationIndex,
newMod: {
type: halfMatching[0].local.platform,
id: halfMatching[0].local.modId,
name: halfMatching[0].remote.name
} as Mod,
installation: {
hash: halfMatching[0].local.mod.hash,
fileName: halfMatching[0].local.mod.fileName,
name: halfMatching[0].remote.name,
type: halfMatching[0].local.platform,
id: halfMatching[0].local.modId,
releasedOn: halfMatching[0].local.mod.releaseDate,
downloadUrl: halfMatching[0].local.mod.downloadUrl
} as ModInstall
});
}
}

// ================================================================================================================
Expand Down

0 comments on commit 458a58b

Please sign in to comment.