Browse files

Just a minor cosmetic change

  • Loading branch information...
1 parent d93fe86 commit 6ee985eef590154c54dcf19495507630ea2d08b8 @skuro committed Jul 7, 2014
Showing with 6 additions and 11 deletions.
  1. +6 −11 src/leiningen/amp/impl.clj
View
17 src/leiningen/amp/impl.clj
@@ -69,16 +69,12 @@
(defn- replace-parameters
[project value]
- (s/replace
- (s/replace
- (s/replace
- (s/replace
- value
- "${project.name}" (str (if (nil? (:group project)) "" (str (:group project) "."))
- (:name project)))
- "${project.title}" (:title project))
- "${project.version}" (fix-snapshot-version (:version project)))
- "${project.description}" (:description project)))
+ (-> value
+ (s/replace "${project.name}" (str (if (nil? (:group project)) "" (str (:group project) "."))
+ (:name project)))
+ (s/replace "${project.title}" (:title project))
+ (s/replace "${project.version}" (fix-snapshot-version (:version project)))
+ (s/replace "${project.description}" (:description project))))
(defn- read-module-properties
[project module-properties-file]
@@ -188,4 +184,3 @@
(defn deploy-amp!
[project args]
(main/abort "AMP deployment is not yet implemented. Sorry!"))
-

0 comments on commit 6ee985e

Please sign in to comment.