Skip to content

Commit c47e3b3

Browse files
author
Luke Zapart
committed
Lint
1 parent b17b8be commit c47e3b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/rules/prefer-read-only-props.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ module.exports = {
6060
if (!prop.node.variance) {
6161
// Insert covariance
6262
return fixer.insertTextBefore(prop.node, '+');
63-
} else {
64-
// Replace contravariance with covariance
65-
return fixer.replaceText(prop.node.variance, '+');
6663
}
64+
65+
// Replace contravariance with covariance
66+
return fixer.replaceText(prop.node.variance, '+');
6767
}
6868
});
6969
}

0 commit comments

Comments
 (0)