mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
CODEBASE: Fix lint errors 1 (#1732)
This commit is contained in:
@@ -36,9 +36,9 @@ export function getGangFaction(this: PlayerObject): Faction {
|
||||
return fac;
|
||||
}
|
||||
|
||||
export function getGangName(this: PlayerObject): string {
|
||||
export function getGangName(this: PlayerObject): FactionName | null {
|
||||
const gang = this.gang;
|
||||
return gang ? gang.facName : "";
|
||||
return gang ? gang.facName : null;
|
||||
}
|
||||
|
||||
export function hasGangWith(this: PlayerObject, facName: FactionName): boolean {
|
||||
|
||||
@@ -302,7 +302,7 @@ export function applyForJob(
|
||||
}
|
||||
|
||||
if (!company.hasPosition(pos)) {
|
||||
console.error(`Company ${company.name} does not have position ${pos}. Player.applyToCompany() failed.`);
|
||||
console.error(`Company ${company.name} does not have position ${pos.name}. Player.applyToCompany() failed.`);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user