File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,10 @@ const pattern = new RegExp("^(.*?):(\\d+):(.*)$");
40
40
* @returns A Curator that yields search results in the form of `GrepDetail`.
41
41
*/
42
42
export function grep ( options : GrepOptions = { } ) : Curator < Detail > {
43
- let base : string ;
44
43
return defineCurator (
45
44
async function * ( denops , { args, query } , { signal } ) {
46
45
// Determine the root directory for the grep command
47
- base ?? = await getAbsolutePathOf ( denops , args [ 0 ] ?? "." , signal ) ;
46
+ const base = await getAbsolutePathOf ( denops , args [ 0 ] ?? "." , signal ) ;
48
47
49
48
// Configure the `grep` command with the provided query
50
49
const cmd = new Deno . Command ( "grep" , {
Original file line number Diff line number Diff line change @@ -38,11 +38,10 @@ const pattern = new RegExp("^(.*?):(\\d+):(\\d+):(.*)$");
38
38
* @returns A Curator that yields search results in the form of `RgDetail`.
39
39
*/
40
40
export function rg ( options : RgOptions = { } ) : Curator < Detail > {
41
- let base : string ;
42
41
return defineCurator (
43
42
async function * ( denops , { args, query } , { signal } ) {
44
43
// Determine the root directory for the rg command
45
- base ?? = await getAbsolutePathOf ( denops , args [ 0 ] ?? "." , signal ) ;
44
+ const base = await getAbsolutePathOf ( denops , args [ 0 ] ?? "." , signal ) ;
46
45
47
46
// Configure the `rg` command with the provided query
48
47
const cmd = new Deno . Command ( "rg" , {
You can’t perform that action at this time.
0 commit comments