Skip to content

Fix 9 ClangTidyReadability findings:#2373

Merged
jemoreira merged 1 commit intogoogle:mainfrom
jemoreira:tidy
Apr 10, 2026
Merged

Fix 9 ClangTidyReadability findings:#2373
jemoreira merged 1 commit intogoogle:mainfrom
jemoreira:tidy

Conversation

@jemoreira
Copy link
Copy Markdown
Member

  • the 'empty' method should be used to check for emptiness instead of comparing to an empty object.
  • do not use 'compare' to test equality of strings; use the string equality operator instead.
  • redundant get() call on smart pointer.
  • the 'empty' method should be used to check for emptiness instead of 'size'.

* the 'empty' method should be used to check for emptiness instead of
  comparing to an empty object.
* do not use 'compare' to test equality of strings; use the string equality
  operator instead.
* redundant get() call on smart pointer.
* the 'empty' method should be used to check for emptiness instead of
  'size'.
@jemoreira jemoreira requested a review from ser-io April 10, 2026 18:49
@jemoreira jemoreira enabled auto-merge April 10, 2026 18:51
@jemoreira jemoreira added this pull request to the merge queue Apr 10, 2026
Merged via the queue into google:main with commit 10f8987 Apr 10, 2026
27 checks passed
@jemoreira jemoreira deleted the tidy branch April 11, 2026 02:18
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.

2 participants