mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
auto-fixed prefer-const violation
This commit is contained in:
@@ -50,7 +50,7 @@ const JSCHARDET_TO_ICONV_ENCODINGS: { [name: string]: string } = {
|
||||
};
|
||||
|
||||
export function detectEncoding(buffer: Buffer): string | null {
|
||||
let result = detectEncodingByBOM(buffer);
|
||||
const result = detectEncodingByBOM(buffer);
|
||||
|
||||
if (result) {
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user