mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 00:04:22 +02:00
build fix, lint, remove some instanceof checks
This commit is contained in:
@@ -10,10 +10,7 @@ export function canAccessCorporation(this: PlayerObject): boolean {
|
||||
}
|
||||
|
||||
export function hasCorporation(this: PlayerObject): boolean {
|
||||
if (this.corporation == null) {
|
||||
return false;
|
||||
}
|
||||
return this.corporation instanceof Corporation;
|
||||
return Boolean(this.corporation);
|
||||
}
|
||||
|
||||
export function startCorporation(this: PlayerObject, corpName: string, additionalShares = 0): void {
|
||||
|
||||
Reference in New Issue
Block a user