Use `car` instead of `first`

This commit is contained in:
Carlo Sciolla 2019-08-21 11:29:20 +02:00
parent 4a908c2279
commit 5a6ed6c5a2
No known key found for this signature in database
GPG Key ID: BA5D71E6F3C580C1
1 changed files with 8 additions and 8 deletions

View File

@ -230,9 +230,9 @@
(strs (xml-get-children doc 'str))
(version (->> strs
(--filter (string-equal "v" (xml-get-attribute it 'name)))
(first)
(car)
(xml-node-children)
(first))))
(car))))
(message (concat "Downloading PlantUML v" version " into " plantuml-jar-path))
(url-copy-file (format "https://search.maven.org/remotecontent?filepath=net/sourceforge/plantuml/plantuml/%s/plantuml-%s.jar" version version) plantuml-jar-path t)
(kill-buffer)))