Skip to content

Commit

Permalink
Fix: Replace the obsolete if-let macro with the modern if-let* ma…
Browse files Browse the repository at this point in the history
…cro.
  • Loading branch information
jamescherti committed Jan 20, 2025
1 parent b3c25ac commit 9f59f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easysession.el
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ Returns t if the session file exists, nil otherwise."
(easysession--prompt-session-name
"Delete session: " session-name)))
(session-file (easysession--get-session-file-name session-name)))
(if-let ((session-buffer (find-buffer-visiting session-file)))
(if-let* ((session-buffer (find-buffer-visiting session-file)))
(kill-buffer session-buffer))
(if (file-exists-p session-file)
(progn (delete-file session-file nil)
Expand Down

0 comments on commit 9f59f61

Please sign in to comment.