branch: elpa/dockerfile-mode
commit 712302d04dce65419ce6c726c504228eae3010e8
Author: Steve Purcell <st...@sanityinc.com>
Commit: Steve Purcell <st...@sanityinc.com>

    Drop unnecessary use of "format"
---
 dockerfile-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dockerfile-mode.el b/dockerfile-mode.el
index 642711e8fe..312a354568 100644
--- a/dockerfile-mode.el
+++ b/dockerfile-mode.el
@@ -99,9 +99,9 @@ Each element of the list will be passed as a separate
   "Convert the file name to OS standard.
 If in Cygwin environment, uses Cygwin specific function to convert the
 file name. Otherwise, uses Emacs' standard conversion function."
-  (format "%s" (if (fboundp 'cygwin-convert-file-name-to-windows)
-                   (s-replace "\\" "\\\\" (cygwin-convert-file-name-to-windows 
file))
-                 (convert-standard-filename file))))
+  (if (fboundp 'cygwin-convert-file-name-to-windows)
+      (s-replace "\\" "\\\\" (cygwin-convert-file-name-to-windows file))
+    (convert-standard-filename file)))
 
 (defvar dockerfile-image-name nil
   "Name of the dockerfile currently being used.

Reply via email to