Skip to content

Prefer some over find in tag validation - #52

Merged
igorsatsyuk merged 1 commit into
mainfrom
feat/prefer-some-over-find
Jul 7, 2026
Merged

Prefer some over find in tag validation#52
igorsatsyuk merged 1 commit into
mainfrom
feat/prefer-some-over-find

Conversation

@igorsatsyuk

Copy link
Copy Markdown
Owner

Summary

Replace .find(...) with .some(...) in secret draft tag-length validation.

Why

The code only needs a boolean check for whether any tag exceeds the limit, so .some(...) communicates intent more clearly and resolves the maintainability warning.

Validation

  • npm test in frontend
  • 21 tests passed

@igorsatsyuk igorsatsyuk self-assigned this Jul 7, 2026
@igorsatsyuk
igorsatsyuk marked this pull request as ready for review July 7, 2026 15:12
@igorsatsyuk
igorsatsyuk merged commit 3339b2b into main Jul 7, 2026
7 checks passed
@igorsatsyuk
igorsatsyuk deleted the feat/prefer-some-over-find branch July 7, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant