Use `car` instead of `first`
This commit is contained in:
parent
4a908c2279
commit
5a6ed6c5a2
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue