mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
NodeBuffer => Buffer
This commit is contained in:
@@ -9,7 +9,7 @@ import * as jschardet from 'jschardet';
|
||||
|
||||
jschardet.Constants.MINIMUM_THRESHOLD = 0.2;
|
||||
|
||||
function detectEncodingByBOM(buffer: NodeBuffer): string | null {
|
||||
function detectEncodingByBOM(buffer: Buffer): string | null {
|
||||
if (!buffer || buffer.length < 2) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user