Skip to content

Commit 8a15017

Browse files
Code cleanup
1 parent ceafc40 commit 8a15017

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fsharp-mode.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,8 @@ If set to t, the buffer will always be saved, silently."
239239
;; has no deterministic indentation.
240240
(when (boundp 'electric-indent-inhibit) (setq electric-indent-inhibit t))
241241

242-
(let ((file (buffer-file-name)))
243-
(when file
244-
(setq compile-command (fsharp-mode-choose-compile-command file)))))
242+
(when-let ((file (buffer-file-name)))
243+
(setq compile-command (fsharp-mode-choose-compile-command file))))
245244

246245
(defun fsharp-mode-choose-compile-command (file)
247246
"Format an appropriate compilation command, depending on several factors:

0 commit comments

Comments
 (0)