emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode a18b3f3 134/495: style change


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode a18b3f3 134/495: style change
Date: Sat, 7 Aug 2021 09:04:59 -0400 (EDT)

branch: elpa/go-mode
commit a18b3f31ab5b32226668dd39f0f704fb8df0b7e6
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    style change
---
 go-mode.el | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index 908cec5..ba122b8 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -523,12 +523,11 @@ recommended that you look at goflymake
     ;; is not an issue because gofmt -w does not produce any stdout
     ;; output in case of success.
     (if (zerop (call-process "gofmt" nil errbuf nil "-w" tmpfile))
-        (progn
-          (if (zerop (call-process-region (point-min) (point-max) "diff" nil 
patchbuf nil "-n" "-" tmpfile))
-              (message "Buffer is already gofmted")
-            (go--apply-rcs-patch patchbuf)
-            (kill-buffer errbuf)
-            (message "Applied gofmt")))
+        (if (zerop (call-process-region (point-min) (point-max) "diff" nil 
patchbuf nil "-n" "-" tmpfile))
+            (message "Buffer is already gofmted")
+          (go--apply-rcs-patch patchbuf)
+          (kill-buffer errbuf)
+          (message "Applied gofmt"))
       (message "Could not apply gofmt. Check errors for details")
       (gofmt--process-errors (buffer-file-name) tmpfile errbuf))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]