-
Notifications
You must be signed in to change notification settings - Fork 654
Address prealloc lint issues #4390
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
Conversation
| configs = append(configs, dataSource.ClusterName, dataSource.RepoName) | ||
| configs = append(configs, dataSource.Options...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| configs = append(configs, dataSource.ClusterName, dataSource.RepoName) | |
| configs = append(configs, dataSource.Options...) | |
| configs = append(configs, dataSource.ClusterName, dataSource.RepoName, dataSource.Options...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the first two elements being appended are strings and the last one is a string slice utilizing a variadic spread , you unfortunately can't do this in a single append call.
| configs = append(configs, cloudDataSource.Stanza, cloudDataSource.Repo.Name) | ||
| configs = append(configs, cloudDataSource.Options...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| configs = append(configs, cloudDataSource.Stanza, cloudDataSource.Repo.Name) | |
| configs = append(configs, cloudDataSource.Options...) | |
| configs = append(configs, cloudDataSource.Stanza, cloudDataSource.Repo.Name, cloudDataSource.Options...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
dsessler7
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple nitpicks, but looks good to me.
Issue: PGO-2844
dd46d95 to
041a047
Compare
Checklist:
Type of Changes:
What is the new behavior (if this is a feature change)?
This update addresses prealloc lint issues.
Other Information:
Issue: PGO-2844