Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
asmarques committed Dec 21, 2024
1 parent c38ab57 commit c0e1cc8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions chai-bignumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module.exports = function (BigNumber) {
var isGreaterThanOrEqualTo = BigNumber.prototype.isGreaterThanOrEqualTo || BigNumber.prototype.greaterThanOrEqualTo;
var isLessThan = BigNumber.prototype.isLessThan || BigNumber.prototype.lessThan;
var isLessThanOrEqualTo = BigNumber.prototype.isLessThanOrEqualTo || BigNumber.prototype.lessThanOrEqualTo;
var oneOf = BigNumber.prototype.oneOf

return function (chai, utils) {
chai.Assertion.addProperty('bignumber', function () {
Expand Down Expand Up @@ -162,7 +161,7 @@ module.exports = function (BigNumber) {
return function (list) {
if (utils.flag(this, 'bignumber')) {
var value = convert(this._obj);
var found = false
var found = false;
for (var i = 0; i < list.length; i++) {
if (value.isEqualTo(list[i])) {
found = true;
Expand All @@ -173,7 +172,7 @@ module.exports = function (BigNumber) {
'expected #{this} to be one of #{exp}',
'expected #{this} to not be one of #{exp}',
list
)
);
} else {
original.apply(this, arguments);
}
Expand Down

0 comments on commit c0e1cc8

Please sign in to comment.