Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Zapart committed Jan 3, 2019
1 parent b17b8be commit c47e3b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rules/prefer-read-only-props.js
Expand Up @@ -60,10 +60,10 @@ module.exports = {
if (!prop.node.variance) {
// Insert covariance
return fixer.insertTextBefore(prop.node, '+');
} else {
// Replace contravariance with covariance
return fixer.replaceText(prop.node.variance, '+');
}

// Replace contravariance with covariance
return fixer.replaceText(prop.node.variance, '+');
}
});
}
Expand Down

0 comments on commit c47e3b3

Please sign in to comment.