[Utils] Minor simplification

This commit is contained in:
Daniel - 2017-11-20 20:20:47 +01:00
parent a2c759e431
commit 3a51420a7c
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 1 additions and 2 deletions

View File

@ -182,8 +182,7 @@ major mode MODE."
(defun db/ascii-to-hex (ascii-string)
"Convert ASCII-STRING to its hexadecimal representation."
(interactive "sString (ascii): ")
(->> (string-to-list ascii-string) ; redundant
(--map (format "%2X" it))
(->> (--map (format "%2X" it) ascii-string)
(apply #'concat)
message))