Skip to content

Commit

Permalink
Removes deprecated buffer call
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Apr 6, 2021
1 parent 9f8840f commit ebd3a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vsls/guest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ebd3a27

Please sign in to comment.