Skip to content

Commit 05e3fe8

Browse files
committed
fix: return nil when dart is missing
Currently returns a formatted string
1 parent 5cb1997 commit 05e3fe8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsp-dart-utils.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ FLUTTER_ROOT environment variable."
145145
(let* ((command (lsp-dart--executable-find "dart" (lsp-dart-get-sdk-dir))))
146146
(if command
147147
command
148-
(lsp-dart-log "Dart command not found in path '%s'" command))))
148+
(lsp-dart-log "Dart command not found in path '%s'" command)
149+
nil)))
149150

150151
(defun lsp-dart-pub-command ()
151152
"Return the pub executable path from Dart SDK path."

0 commit comments

Comments
 (0)