Skip to content

Commit

Permalink
refactor: make clearer logic (though no effect in this case given how…
Browse files Browse the repository at this point in the history
… variable used)
  • Loading branch information
brettz9 committed Jun 17, 2020
1 parent fed7586 commit 75fd013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/validTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default iterateJsdoc(({
const hasNameOrNamepathPosition = utils.tagMightHaveNamePosition(tag.tag) && Boolean(tag.name) && !(tag.tag === 'see' && !checkSeesForNamepaths);
const mustHaveNameOrNamepathPosition = utils.tagMustHaveNamePosition(tag.tag) && !allowEmptyNamepaths;

const hasEither = utils.tagMightHaveEitherTypeOrNamePosition(tag.tag) && hasTypePosition || hasNameOrNamepathPosition;
const hasEither = utils.tagMightHaveEitherTypeOrNamePosition(tag.tag) && (hasTypePosition || hasNameOrNamepathPosition);
const mustHaveEither = utils.tagMustHaveEitherTypeOrNamePosition(tag.tag);

if (tag.tag === 'borrows') {
Expand Down

0 comments on commit 75fd013

Please sign in to comment.