Skip to content

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!

Copy link
Contributor

@yec-akamai yec-akamai left a comment

Choose a reason for hiding this comment

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

LGTM

@zliang-akamai zliang-akamai merged commit 2d640e8 into linode:dev Feb 26, 2025
14 checks passed
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.

4 participants