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

Add fallback value to replace explicitly option checking for config gets #726

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

zliang-akamai
Copy link
Member

@zliang-akamai zliang-akamai commented Feb 7, 2025

Description

Refactor the logic for handling absent of the config values by providing a fallback value in the get function call to replace the explicit checking with if statement.

Testing

There should not be any functionality change in this PR, but you can try various stuff with the CLI, for example:

  1. linode configure
  2. linode linodes list
  3. ...

@zliang-akamai zliang-akamai requested a review from a team as a code owner February 7, 2025 08:09
@zliang-akamai zliang-akamai requested review from lgarber-akamai and yec-akamai and removed request for a team February 7, 2025 08:09
@zliang-akamai zliang-akamai marked this pull request as draft February 10, 2025 18:50
@zliang-akamai zliang-akamai added the improvement for improvements in existing functionality in the changelog. label Feb 11, 2025
@zliang-akamai zliang-akamai marked this pull request as ready for review February 11, 2025 21:03
Copy link
Contributor

@lgarber-akamai lgarber-akamai left a comment

Choose a reason for hiding this comment

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

Always nice to refactor neglected code, great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement for improvements in existing functionality in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants