Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
🔨 Address deepscan warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersubudhi committed Sep 28, 2023
1 parent 8fe1d2f commit 5e3f695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const migrateUserConfig = async (
cli.action.start('Starting migration of custom config properties.');

// Assign default version if not available
if (!configV4?.system?.version) {
if (!configV4.system?.version) {
cli.action.start(`Setting config property 'system.version' to: ${DEFAULT_VERSION}.`);
configV4.system.version = DEFAULT_VERSION;
cli.action.stop();
Expand Down Expand Up @@ -247,7 +247,7 @@ export const migrateUserConfig = async (
(NUMBER_ACTIVE_VALIDATORS + NUMBER_STANDBY_VALIDATORS);
cli.action.stop();

if (configV4?.modules?.pos && !configV4?.modules?.pos?.maxBFTWeightCap) {
if (configV4.modules?.pos && !configV4.modules?.pos?.maxBFTWeightCap) {
cli.action.start(
`Setting config property 'modules.pos.maxBFTWeightCap' to: ${MAX_BFT_WEIGHT_CAP}.`,
);
Expand Down

0 comments on commit 5e3f695

Please sign in to comment.