changing readstream let to const

This commit is contained in:
Martin McKeaveney 2022-08-08 13:54:11 +01:00
parent 9ec178c7c8
commit 7de6117421
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ exports.loadHandlebarsFile = path => {
exports.apiFileReturn = contents => { exports.apiFileReturn = contents => {
const path = join(budibaseTempDir(), uuid()) const path = join(budibaseTempDir(), uuid())
fs.writeFileSync(path, "\ufeff" + contents) fs.writeFileSync(path, "\ufeff" + contents)
let readerStream = fs.createReadStream(path) const readerStream = fs.createReadStream(path)
readerStream.setEncoding("binary") readerStream.setEncoding("binary")
return readerStream return readerStream
} }