Skip to content

fix(contacts): correct parameter types in contacts apply helpers#355

Merged
steipete merged 2 commits intoopenclaw:mainfrom
laihenyi:fix/contacts-param-types
Mar 7, 2026
Merged

fix(contacts): correct parameter types in contacts apply helpers#355
steipete merged 2 commits intoopenclaw:mainfrom
laihenyi:fix/contacts-param-types

Conversation

@laihenyi
Copy link
Copy Markdown
Contributor

Summary

  • Fix build error in contactsApplyPersonName and contactsApplyPersonOrganization where Go's parameter grouping syntax caused given and org to be typed as bool instead of string
  • e.g. givenSet bool, given, familySet bool groups given and familySet as bool, but given should be string

Test plan

  • make builds successfully
  • make test all tests pass

🤖 Generated with Claude Code

laihenyi and others added 2 commits February 23, 2026 12:38
Go's parameter grouping syntax caused `given` and `org` to be typed as
`bool` instead of `string` in contactsApplyPersonName and
contactsApplyPersonOrganization, resulting in a build failure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rewrite if-else chain to switch statement (gocritic)
- Rename `clear` variable to `clearAll` to avoid shadowing predeclared
  identifier (predeclared)
- Remove unused `primaryURL` function (unused)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@steipete
Copy link
Copy Markdown
Collaborator

steipete commented Mar 7, 2026

Landed via temp rebase onto main.

Thanks @laihenyi!

@steipete steipete mentioned this pull request Mar 7, 2026
klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
…nclaw#355)

* fix(contacts): correct parameter types in contacts apply helpers

Go's parameter grouping syntax caused `given` and `org` to be typed as
`bool` instead of `string` in contactsApplyPersonName and
contactsApplyPersonOrganization, resulting in a build failure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(contacts): resolve lint errors from upstream refactor

- Rewrite if-else chain to switch statement (gocritic)
- Rename `clear` variable to `clearAll` to avoid shadowing predeclared
  identifier (predeclared)
- Remove unused `primaryURL` function (unused)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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