On Wed, Dec 11 2024 at 16:58, Robert Pluim wrote: >>>>>> On Wed, 11 Dec 2024 17:45:59 +0200, Eli Zaretskii said: > > Iʼm not Randy, but: > > >> +(defun go-ts-mode--get-test-args () > >> + "Return the test args. > >> +This function respects the `go-ts-mode-test-args' variable for > >> +specifying test args, such as adding coverage file." > >> + (if go-ts-mode-test-args > >> + (string-join go-ts-mode-test-args) > >> + "")) > >> + > > This entire function is not needed, since > > (string-join nil) => "" > > >> (defun go-ts-mode--compile-test (regexp) > >> "Compile the tests matching REGEXP. > >> This function respects the `go-ts-mode-build-tags' variable for > >> specifying build tags." > >> - (compile (format "go test -v %s -run '%s'" > >> + (compile (format "go test %s -v %s -run '%s'" > >> + (go-ts-mode--get-test-args) > >> (go-ts-mode--get-build-tags-flag) > >> regexp))) > >> > > so you could just inline the `string-join' here. Ah, thanks! I've attached a new patch with the simplification. best -- will