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

Removing unnecessary ? in url #222

Merged
merged 3 commits into from Nov 14, 2017

Conversation

YoniMataraso
Copy link

No description provided.

}.getOrElse("?") + getQueryString("with-descendants").map {
val linkBase = cmWellBase + normalizedPath + "?op=search" + getQueryString("format").map {
"&format=" + _
}.getOrElse("") + getQueryString("with-descendants").map {
Copy link
Contributor

Choose a reason for hiding this comment

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

Use Option.fold(ifEmpty)(elem => ...) instead of Option.map(elem => ...).getOrElse(ifEmpty).
It performs a bit better and saves a few LOCs ;)

@YoniMataraso
Copy link
Author

Modified code according to the changes requested

Copy link
Contributor

@hochgi hochgi left a comment

Choose a reason for hiding this comment

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

LGTM

@YoniMataraso YoniMataraso merged commit 24ad216 into CM-Well:master Nov 14, 2017
@YoniMataraso YoniMataraso deleted the paginationUrlBug branch January 18, 2018 03:24
e-orz pushed a commit to e-orz/CM-Well that referenced this pull request Feb 6, 2021
* Removing unecesssary ? in url

* Removing unecesssary ? in url-WIP

* Modifying length variable to lengthParam
e-orz pushed a commit to e-orz/CM-Well that referenced this pull request Feb 6, 2021
* Removing unecesssary ? in url

* Removing unecesssary ? in url-WIP

* Modifying length variable to lengthParam
e-orz pushed a commit to e-orz/CM-Well that referenced this pull request Feb 6, 2021
* Removing unecesssary ? in url

* Removing unecesssary ? in url-WIP

* Modifying length variable to lengthParam
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

2 participants