Fix typo in ImportScanner#_readFile (#10132)

This commit is contained in:
Chris Hearn
2018-08-07 13:57:38 +01:00
committed by Ben Newman
parent 6747a63c7c
commit a8af2ba590

View File

@@ -945,7 +945,7 @@ export default class ImportScanner {
// translates it to FEFF, the UTF-16 BOM.
if (info.dataString.charCodeAt(0) === 0xfeff) {
info.dataString = info.dataString.slice(1);
info.data = Buffer.from(into.dataString, "utf8");
info.data = Buffer.from(info.dataString, "utf8");
info.hash = sha1(info.data);
}