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

add slash if not existant in base url #73

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

arfio
Copy link
Contributor

@arfio arfio commented Jul 4, 2024

This adds a slash if one is not added in the configured value. It removes one possibility of user error.

bhufmann
bhufmann previously approved these changes Jul 4, 2024
Copy link
Collaborator

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@@ -67,7 +67,7 @@ def __init__(self, base_url):
'''
Constructor
'''
self.base_url = base_url
self.base_url = base_url + '/' if not base_url.endswith('/') else base_url
Copy link
Contributor

Choose a reason for hiding this comment

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

can this be inverted... I think it makes it easier to read:

self.base_url = base_url if base_url.endswith('/') else base_url + '/'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, done !

MatthewKhouzam
MatthewKhouzam previously approved these changes Jul 5, 2024
Copy link
Contributor

@MatthewKhouzam MatthewKhouzam left a comment

Choose a reason for hiding this comment

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

I would like some tests.

This adds a slash if one is not added in the configured value. It
removes one possibility of user error.

Signed-off-by: Arnaud Fiorini <[email protected]>
Copy link
Collaborator

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

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

Thanks!

@MatthewKhouzam MatthewKhouzam merged commit 6d94598 into eclipse-cdt-cloud:master Jul 19, 2024
1 check passed
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.

None yet

3 participants