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

chore: replace interface{} with any #448

Merged
merged 6 commits into from
Oct 12, 2023

Conversation

monstermunchkin
Copy link
Contributor

I noticed a mixed use of interface{} and any. This PR replaces all occurances of interface{} with any to be consistent and improve readability.

Definition of Ready

  • I am happy with the code
  • Short description of the feature/issue is added in the pr description
  • PR is linked to the corresponding user story
  • Acceptance criteria are met
  • All open todos and follow ups are defined in a new ticket and justified
  • Deviations from the acceptance criteria and design are agreed with the PO and documented.
  • No debug or dead code
  • My code has no repetitions
  • Critical parts are tested automatically
  • Where possible E2E tests are implemented
  • Documentation/examples are up-to-date
  • All non-functional requirements are met
  • Functionality of the acceptance criteria is checked manually on the dev system.

@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Merging #448 (e948bed) into main (ceaf2b1) will not change coverage.
The diff coverage is 69.69%.

@@           Coverage Diff           @@
##             main     #448   +/-   ##
=======================================
  Coverage   53.96%   53.96%           
=======================================
  Files          74       74           
  Lines        5830     5830           
=======================================
  Hits         3146     3146           
  Misses       2424     2424           
  Partials      260      260           
Files Coverage Δ
pkg/crypto/sign.go 40.00% <100.00%> (ø)
pkg/http/http.go 53.22% <100.00%> (ø)
pkg/http/marshal.go 89.28% <100.00%> (ø)
pkg/oidc/error.go 91.30% <100.00%> (ø)
pkg/oidc/keyset.go 75.55% <100.00%> (ø)
pkg/oidc/types.go 92.81% <100.00%> (ø)
pkg/oidc/verifier.go 66.94% <100.00%> (ø)
pkg/op/auth_request.go 56.96% <100.00%> (ø)
pkg/op/signer.go 75.00% <ø> (ø)
pkg/op/storage.go 50.00% <ø> (ø)
... and 7 more

Copy link
Collaborator

@muhlemmer muhlemmer left a comment

Choose a reason for hiding this comment

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

Hi. Thanks for housekeeping. There are some files that you changed in the PR, which are generated. These changes will be undone the next time go generate ./... is run. I've commented on the files, these should not be part of the PR.

As a practice, generated files should never be changed manually. This is also mentioned at the top of every generated file:

// Code generated by xxxx. DO NOT EDIT.

pkg/op/applicationtype_enumer.go Outdated Show resolved Hide resolved
pkg/op/mock/authorizer.mock.go Outdated Show resolved Hide resolved
pkg/op/mock/client.mock.go Outdated Show resolved Hide resolved
pkg/op/mock/configuration.mock.go Outdated Show resolved Hide resolved
pkg/op/mock/discovery.mock.go Outdated Show resolved Hide resolved
pkg/op/mock/key.mock.go Outdated Show resolved Hide resolved
pkg/op/mock/signer.mock.go Outdated Show resolved Hide resolved
pkg/op/mock/storage.mock.go Outdated Show resolved Hide resolved
@muhlemmer muhlemmer changed the title Replace interface{} with any chore: replace interface{} with any Oct 12, 2023
@muhlemmer muhlemmer merged commit e6e3835 into zitadel:main Oct 12, 2023
8 checks passed
@github-actions
Copy link

🎉 This PR is included in version 3.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 2.12.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants