Skip to content

Commit

Permalink
quick lil refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Apr 24, 2023
1 parent 47286f7 commit ad154ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-plugin/src/rules/unified-signatures.ts
Expand Up @@ -213,9 +213,9 @@ export default util.createRule<Options, MessageIds>({
b.typeParameters !== undefined ? b.typeParameters.params : undefined;

if (ignoreDifferentlyNamedParameters) {
for (let i = 0; i < a.params.length; i += 1) {
const commonParamsLength = Math.min(a.params.length, b.params.length);
for (let i = 0; i < commonParamsLength; i += 1) {
if (
b.params[i] &&
a.params[i].type === b.params[i].type &&
getStaticParameterName(a.params[i]) !==
getStaticParameterName(b.params[i])
Expand Down

0 comments on commit ad154ff

Please sign in to comment.