Skip to content

Conversation

dfucci
Copy link

@dfucci dfucci commented Dec 3, 2014

Hi,
I noticed that Googl.expand/shorten deal with checking whether a url is valid or not. I think that's a code smell that might violate the single responsibility principle.
I have refactored the validity check of the string representing the url in the Url class. So far it does only that but later could contain other url-related responsibilities.

@johnnyshields
Copy link
Contributor

👍

Copy link
Member

Choose a reason for hiding this comment

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

Why the test is commented?

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.

3 participants