Skip to content

Conversation

@kemalcanbora
Copy link
Contributor

getPrivateKey and getServiceAccountKey functions consist of repetitive codes, to prevent this, it is sufficient to create a single function.

Copy link
Contributor

@vicentepinto98 vicentepinto98 left a comment

Choose a reason for hiding this comment

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

Since you are refactoring this code block, it would be nice to take the chance to increase the readbility by flipping initial condition at the start.

Like this:

if *cfgKey != "" {return nil}
if *cfgPath == "" {
     ....
}
....
return nil

@vicentepinto98
Copy link
Contributor

Thank you for your contribution! 😄

@vicentepinto98 vicentepinto98 merged commit 863238c into stackitcloud:main May 8, 2024
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