Skip to content

Commit 07aa83d

Browse files
committed
fix: remove unnecessary argument from executable-find function
Removed the redundant ~nil~ argument from the ~executable-find~ function call.
1 parent 3004101 commit 07aa83d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

copilot.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,14 +317,13 @@ Incremented after each change.")
317317
((and (file-name-absolute-p copilot-server-executable)
318318
(file-exists-p copilot-server-executable))
319319
copilot-server-executable)
320-
((executable-find copilot-server-executable nil))
320+
((executable-find copilot-server-executable))
321321
(t
322322
(let ((path (executable-find
323323
(f-join copilot-install-dir
324324
(cond ((eq system-type 'windows-nt) "")
325325
(t "bin"))
326-
copilot-server-executable)
327-
nil)))
326+
copilot-server-executable))))
328327
(unless (and path (file-exists-p path))
329328
(error "The package %s is not installed. Unable to find %s"
330329
copilot-server-package-name path))

0 commit comments

Comments
 (0)