Skip to content

The same body repeated in different condition branch #415

@thexpand

Description

@thexpand

Take a look here:

lost/lib/lost-row.js

Lines 83 to 93 in 9ebffd0

if (lostRowGutter !== '0') {
decl.cloneBefore({
prop: 'height',
value: lgLogic.calcValue(lostRow, lostRowGutter, lostRowRounder, unit)
});
} else {
decl.cloneBefore({
prop: 'height',
value: lgLogic.calcValue(lostRow, lostRowGutter, lostRowRounder, unit)
});
}

The same body is used in both the if and the else clause.
What is happening? Isn't that some kind of mistake?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions