Skip to content

Commit

Permalink
refactor(llc): Boolean() instead of !!
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandremgo committed Jun 9, 2022
1 parent a96aed9 commit 8d40a79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/ledger-live-common/src/hw/extractOnboardingState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export const extractOnboardingState = (flagsBytes: Buffer): OnboardingState => {
);
}

const isOnboarded = !!(flagsBytes[0] & onboardedMask);
const isInRecoveryMode = !!(flagsBytes[0] & inRecoveryModeMask);
const isOnboarded = Boolean(flagsBytes[0] & onboardedMask);
const isInRecoveryMode = Boolean(flagsBytes[0] & inRecoveryModeMask);

const seedPhraseTypeBits =
(flagsBytes[2] & seedPhraseTypeMask) >> seedPhraseTypeFlagOffset;
Expand Down

0 comments on commit 8d40a79

Please sign in to comment.