Skip to content

Commit 7e80181

Browse files
committed
Fix lint: simplify disabled check to !rawOption (reduces complexity)
1 parent 6406ed1 commit 7e80181

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rules/template-quotes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = {
5454
const rawOption = context.options[0];
5555

5656
// Disabled when options omitted or explicitly set to `false`.
57-
if (rawOption === undefined || rawOption === false) {
57+
if (!rawOption) {
5858
return {};
5959
}
6060

0 commit comments

Comments
 (0)