Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
style: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Jul 18, 2021
1 parent 109485d commit 9626fde
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/userscript/source/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1109,8 +1109,8 @@ export class Engine {
}

if (upgrades.policies.enabled && this._host.gamePage.tabs[2].visible) {
var policies = this._host.gamePage.science.policies;
var toResearch = [];
const policies = this._host.gamePage.science.policies;
const toResearch = [];

for (const [policy] of objectEntries(
(this._host.options.auto.unlock.items.policies as PolicySettings).items
Expand All @@ -1127,9 +1127,9 @@ export class Engine {
}
if (targetPolicy.unlocked) {
if (
targetPolicy.requiredLeaderJob == undefined ||
(this._host.gamePage.village.leader != null &&
this._host.gamePage.village.leader.job == targetPolicy.requiredLeaderJob)
targetPolicy.requiredLeaderJob === undefined ||
(this._host.gamePage.village.leader !== null &&
this._host.gamePage.village.leader.job === targetPolicy.requiredLeaderJob)
) {
toResearch.push(targetPolicy);
}
Expand Down

0 comments on commit 9626fde

Please sign in to comment.