changing readstream let to const
This commit is contained in:
parent
9ec178c7c8
commit
7de6117421
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue