瀏覽代碼

Removes deprecated buffer call

main
Eric Amodio 3 年之前
父節點
當前提交
ebd3a271b9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/vsls/guest.ts

+ 1
- 1
src/vsls/guest.ts 查看文件

@ -54,7 +54,7 @@ export class VslsGuestService implements Disposable {
const response = await this.sendRequest(GitCommandRequestType, { options: options, args: args });
if (response.isBuffer) {
return new Buffer(response.data, 'binary') as TOut;
return Buffer.from(response.data, 'binary') as TOut;
}
return response.data as TOut;
}

Loading…
取消
儲存