Kaynağa Gözat

Removes deprecated buffer call

main
Eric Amodio 3 yıl önce
ebeveyn
işleme
ebd3a271b9
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      src/vsls/guest.ts

+ 1
- 1
src/vsls/guest.ts Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet