Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Just a minor cosmetic change

  • Loading branch information...
commit 6ee985eef590154c54dcf19495507630ea2d08b8 1 parent d93fe86
@skuro authored
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!"))
-
Please sign in to comment.
Something went wrong with that request. Please try again.