File tree Expand file tree Collapse file tree 1 file changed +3
-29
lines changed Expand file tree Collapse file tree 1 file changed +3
-29
lines changed Original file line number Diff line number Diff line change @@ -69,27 +69,13 @@ export async function exists(denops: Denops, name: string): Promise<boolean> {
69
69
return ! ! result ;
70
70
}
71
71
72
- export async function getbufline (
73
- denops : Denops ,
74
- name : string | number ,
75
- lnum : string | number ,
76
- ) : Promise < string > ;
77
- export async function getbufline (
78
- denops : Denops ,
79
- name : string | number ,
80
- lnum : string | number ,
81
- end : string | number ,
82
- ) : Promise < string [ ] > ;
83
72
export async function getbufline (
84
73
denops : Denops ,
85
74
name : string | number ,
86
75
lnum : string | number ,
87
76
end ?: string | number ,
88
- ) : Promise < string | string [ ] > {
89
- if ( end ) {
90
- return await denops . call ( "getbufline" , name , lnum , end ) as string [ ] ;
91
- }
92
- return await denops . call ( "getbufline" , name , lnum ) as string ;
77
+ ) : Promise < string [ ] > {
78
+ return await denops . call ( "getbufline" , name , lnum , end ) as string [ ] ;
93
79
}
94
80
95
81
export async function getline (
@@ -191,24 +177,12 @@ export class FunctionHelper {
191
177
return await has ( this . #denops, name ) ;
192
178
}
193
179
194
- async getbufline (
195
- name : string | number ,
196
- lnum : string | number ,
197
- ) : Promise < string > ;
198
- async getbufline (
199
- name : string | number ,
200
- lnum : string | number ,
201
- end : string | number ,
202
- ) : Promise < string [ ] > ;
203
180
async getbufline (
204
181
name : string | number ,
205
182
lnum : string | number ,
206
183
end ?: string | number ,
207
184
) {
208
- if ( end ) {
209
- return await getbufline ( this . #denops, name , lnum , end ) ;
210
- }
211
- return await getbufline ( this . #denops, name , lnum ) ;
185
+ return await getbufline ( this . #denops, name , lnum , end ) ;
212
186
}
213
187
214
188
async getline ( lnum : string | number ) : Promise < string > ;
You can’t perform that action at this time.
0 commit comments