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

move global struct to anonymous struct #544

Open
chrismarget-j opened this issue Feb 5, 2024 · 0 comments
Open

move global struct to anonymous struct #544

chrismarget-j opened this issue Feb 5, 2024 · 0 comments

Comments

@chrismarget-j
Copy link
Collaborator

The blueprints struct in apstra/data_source_blueprints.go is only used in a single spot.

type blueprints struct {
	Ids       types.Set    `tfsdk:"ids"`
	RefDesign types.String `tfsdk:"reference_design"`
}

Move the global definition to an anonymous struct instantiation at the point of use.

https://github.com/Juniper/terraform-provider-apstra/blob/2ddac8d857da05d275eb7ce2fdd8bec9e5e20d1f/apstra/data_source_blueprints.go#L92C1-L95C2

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

No branches or pull requests

1 participant