Skip to content

Commit eebb1fe

Browse files
committed
Fix wrong check on program exec.
1 parent 8365cac commit eebb1fe

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

go-playground.el

+5-4
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,11 @@ By default confirmation required."
8888
(defun go-playground-exec ()
8989
"Save the buffer then runs Go compiler for executing the code."
9090
(interactive)
91-
(if (go-playground-inside)
92-
(save-buffer t)
93-
(make-local-variable 'compile-command)
94-
(compile (concat go-command " run *.go"))))
91+
(if (go-playground-inside)
92+
(progn
93+
(save-buffer t)
94+
(make-local-variable 'compile-command)
95+
(compile (concat go-command " run *.go")))))
9596

9697
;;;###autoload
9798
(defun go-playground ()

0 commit comments

Comments
 (0)