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

refactor: remove unused baseURI variables related to ServiceEndpoints #109

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented Mar 5, 2024

While working on #103, I noticed that some of the code related to ServiceEndpoints seems to be using a baseURI variable that isn't actually set anywhere.

I've removed those internal baseURI variables in the streaming/polling/event builders, which allowed me to remove an unused overrideValue parameter from some of the ServiceEndpoint utility functions.

@cwaldren-ld cwaldren-ld requested a review from a team March 5, 2024 19:29
@@ -48,11 +48,8 @@ func getCustom(serviceEndpoints interfaces.ServiceEndpoints, serviceType Service
}

// IsCustom returns true if the service endpoint has been overridden with a non-default value.
func IsCustom(serviceEndpoints interfaces.ServiceEndpoints, serviceType ServiceType, overrideValue string) bool {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

overrideValue was always "".

@cwaldren-ld cwaldren-ld force-pushed the cw/sc-234826/endpoint-refactor branch from 46d3225 to cbf7edb Compare March 5, 2024 19:30
@cwaldren-ld cwaldren-ld force-pushed the cw/sc-234826/endpoint-refactor branch from cbf7edb to 7a7aa61 Compare March 5, 2024 19:35
@launchdarkly launchdarkly deleted a comment from shortcut-integration bot Mar 5, 2024
@cwaldren-ld cwaldren-ld merged commit 85b68a1 into v7 Mar 11, 2024
11 checks passed
@cwaldren-ld cwaldren-ld deleted the cw/sc-234826/endpoint-refactor branch March 11, 2024 20:42
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