Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bytes.Equal instead of bytes.Compare #2820

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Use bytes.Equal instead of bytes.Compare #2820

merged 1 commit into from
Jun 26, 2023

Conversation

testwill
Copy link
Contributor

should use bytes.Equal(ae.Raw, v.Raw) instead (S1004)

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @testwill !
LGTM.
Merging after tests pass.

@codecov
Copy link

codecov bot commented Jun 26, 2023

Codecov Report

Merging #2820 (7b0c945) into master (1e7c685) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #2820   +/-   ##
=======================================
  Coverage   98.05%   98.05%           
=======================================
  Files         136      136           
  Lines       12263    12263           
=======================================
  Hits        12025    12025           
  Misses        162      162           
  Partials       76       76           
Impacted Files Coverage Δ
github/github.go 97.97% <100.00%> (ø)

@gmlewis gmlewis changed the title chore: use bytes.Equal(ae.Raw, v.Raw) instead Use bytes.Equal instead of bytes.Compare Jun 26, 2023
@gmlewis gmlewis merged commit cd0f4b9 into google:master Jun 26, 2023
@testwill testwill deleted the bytes branch June 27, 2023 01:25
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