Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/lsp-trunk.el
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@

(defun lsp-trunk-check-for-init (filename &optional _)
"Check if the file exists in a workspace that has a .trunk/trunk.yaml"
(let ((dir (file-name-directory filename))
(trunk-file ".trunk/trunk.yaml"))
(when-let* ((dir (file-name-directory filename))
(trunk-file ".trunk/trunk.yaml"))
(locate-dominating-file dir trunk-file)))

(defun lsp-trunk-check-disable (command)
Expand Down
Loading