Skip to content

Commit 56b17ca

Browse files
committed
Addressed eslint issues
1 parent ab6fe3b commit 56b17ca

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/rules/jsx-indent.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,8 @@ module.exports = {
168168
* @return {Number} Indent
169169
*/
170170
function getNodeIndent(node, byLastLine, excludeCommas) {
171-
let finalLine = byLastLine;
172-
let noCommas = excludeCommas;
173-
finalLine = finalLine || false;
174-
noCommas = noCommas || false;
171+
const finalLine = !!byLastLine;
172+
const noCommas = !!excludeCommas;
175173

176174
let src = context.getSourceCode().getText(node, node.loc.start.column + extraColumnStart);
177175
const lines = src.split('\n');

0 commit comments

Comments
 (0)