Skip to content

Commit 36fc22f

Browse files
committed
Fix eslint: no-lonely-if
1 parent efd4392 commit 36fc22f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

content/build.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,8 @@ const generate = async (config, lang) => {
121121
} else if (row.startsWith('- ')) {
122122
block = BLOCK_LIST;
123123
lines.push(row);
124-
} else {
125-
if (row !== '// prettier-ignore') {
126-
lines.push(row);
127-
}
124+
} else if (row !== '// prettier-ignore') {
125+
lines.push(row);
128126
}
129127
}
130128
};

0 commit comments

Comments
 (0)