Skip to content

Minor refactor of api_client.go to better highlight the client's default value.#1302

Merged
renaudhartert-db merged 2 commits into
mainfrom
renaud-hartert_data/defaults
Oct 9, 2025
Merged

Minor refactor of api_client.go to better highlight the client's default value.#1302
renaudhartert-db merged 2 commits into
mainfrom
renaud-hartert_data/defaults

Conversation

@renaudhartert-db

@renaudhartert-db renaudhartert-db commented Oct 6, 2025

Copy link
Copy Markdown
Contributor

What changes are proposed in this pull request?

This PR is a no-op that isolates the logic to set default values from the rest of the constructor. The goal is to make the default value more apparent.

How is this tested?

Unit + Integration tests.

NO_CHANGELOG=true

@Divyansh-db Divyansh-db left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The orDefault function needs to be removed as it is no longer used.
Otherwise, LGTM.

@github-actions

github-actions Bot commented Oct 6, 2025

Copy link
Copy Markdown

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-go

Inputs:

  • PR number: 1302
  • Commit SHA: 6f385bc748c7c9a51b7b386782819f217c6434e9

Checks will be approved automatically on success.

@renaudhartert-db renaudhartert-db added this pull request to the merge queue Oct 9, 2025
Merged via the queue into main with commit a4fc805 Oct 9, 2025
15 checks passed
@renaudhartert-db renaudhartert-db deleted the renaud-hartert_data/defaults branch October 9, 2025 15:38
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