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: fix spelling errors #23270

Merged
merged 12 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
aljo242 committed Jan 9, 2025
commit a316091df5e22143465cabb50b93c42efc0be7e6
1 change: 1 addition & 0 deletions .github/.codespellignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ upTo
pullRequests
AccountAt
expRes
hasTables
6 changes: 3 additions & 3 deletions orm/internal/codegen/codegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func ORMPluginRunner(p *protogen.Plugin) error {
continue
}

if !hashtables(f) {
if !hasTables(f) {
continue
}

Expand All @@ -52,7 +52,7 @@ func QueryProtoPluginRunner(p *protogen.Plugin) error {
continue
}

if !hashtables(f) {
if !hasTables(f) {
continue
}

Expand All @@ -76,7 +76,7 @@ func QueryProtoPluginRunner(p *protogen.Plugin) error {
return nil
}

func hashtables(file *protogen.File) bool {
func hasTables(file *protogen.File) bool {
for _, message := range file.Messages {
if proto.GetExtension(message.Desc.Options(), ormv1.E_Table).(*ormv1.TableDescriptor) != nil {
return true
Expand Down
Loading