mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 03:25:44 +02:00
CODEBASE: Fix lint errors 2 (#1756)
This commit is contained in:
@@ -214,7 +214,9 @@ export class Product {
|
||||
|
||||
calculateRating(industry: Division): void {
|
||||
const weights = IndustriesData[industry.type].product?.ratingWeights;
|
||||
if (!weights) return console.error(`Could not find product rating weights for: ${industry}`);
|
||||
if (!weights) {
|
||||
return console.error(`Could not find product rating weights for: ${industry.name}`);
|
||||
}
|
||||
this.rating = getRecordEntries(weights).reduce(
|
||||
(total, [statName, weight]) => total + this.stats[statName] * weight,
|
||||
0,
|
||||
|
||||
Reference in New Issue
Block a user