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 unnecessary usage of threading macros, use shorthand Java interop #6

Merged
merged 5 commits into from
Oct 20, 2015

Conversation

thenonameguy
Copy link
Collaborator

As reported by running lein kibit. (The basic rule is for macroexpansion, if the expanded code yields the same list as the non-macro version, then just use the simpler version. Code)

(let [peeled (. repo peel tag)]
(. (if-let [peeled-id (. peeled getPeeledObjectId)] peeled-id (. peeled getObjectId)) name)))
(let [peeled (.peel repo tag)]
(.name (if-let [peeled-id (.getPeeledObjectId peeled)] peeled-id (.getObjectId peeled)))))
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

raszi added a commit that referenced this pull request Oct 20, 2015
Remove unnecessary usage of threading macros, use shorthand Java interop
@raszi raszi merged commit f5fe7aa into ekataglobal:master Oct 20, 2015
@raszi raszi changed the title Remove unnecessary usage of threading macros, use shorthand Java interop refactor: remove unnecessary usage of threading macros, use shorthand Java interop Mar 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants