mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 19:13:49 +01:00
Merge pull request #4010 from Risenafis/fix-create-corp
NETSCRIPT: Correct missing ! for boolean coercion in Corporation.createCorporation().
This commit is contained in:
commit
6969ff52c7
@ -976,7 +976,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
|
|||||||
(ctx: NetscriptContext) =>
|
(ctx: NetscriptContext) =>
|
||||||
(_corporationName: unknown, _selfFund: unknown = true): boolean => {
|
(_corporationName: unknown, _selfFund: unknown = true): boolean => {
|
||||||
const corporationName = helpers.string(ctx, "corporationName", _corporationName);
|
const corporationName = helpers.string(ctx, "corporationName", _corporationName);
|
||||||
const selfFund = !_selfFund;
|
const selfFund = !!_selfFund;
|
||||||
return createCorporation(corporationName, selfFund);
|
return createCorporation(corporationName, selfFund);
|
||||||
},
|
},
|
||||||
hasUnlockUpgrade:
|
hasUnlockUpgrade:
|
||||||
|
Loading…
Reference in New Issue
Block a user