refactor: replace ternary operator with binary OR operator

This commit is contained in:
siiky 2022-12-16 17:35:19 +00:00 committed by Rafael
parent a56336282f
commit 63bb2c791d

View file

@ -64,7 +64,7 @@ function post (machineTx, pi) {
_.set('blacklisted', isBlacklisted),
_.set('blacklistMessage', blacklisted?.content),
_.set('addressReuse', addressReuse),
_.set('validWalletScore', _.isNil(walletScore) ? true : walletScore.isValid),
_.set('validWalletScore', _.isNil(walletScore) || walletScore.isValid),
))
})
})