fix(fs): remove unnecessary/incorrect readFile param
This commit is contained in:
@@ -364,7 +364,7 @@ export default class RemoteHandlerAbstract {
|
|||||||
let data
|
let data
|
||||||
try {
|
try {
|
||||||
// this file is not encrypted
|
// this file is not encrypted
|
||||||
data = await this._readFile(normalizePath(ENCRYPTION_DESC_FILENAME), 'utf-8')
|
data = await this._readFile(normalizePath(ENCRYPTION_DESC_FILENAME))
|
||||||
const json = JSON.parse(data)
|
const json = JSON.parse(data)
|
||||||
encryptionAlgorithm = json.algorithm
|
encryptionAlgorithm = json.algorithm
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -377,7 +377,7 @@ export default class RemoteHandlerAbstract {
|
|||||||
try {
|
try {
|
||||||
this.#rawEncryptor = _getEncryptor(encryptionAlgorithm, this._remote.encryptionKey)
|
this.#rawEncryptor = _getEncryptor(encryptionAlgorithm, this._remote.encryptionKey)
|
||||||
// this file is encrypted
|
// this file is encrypted
|
||||||
const data = await this.__readFile(ENCRYPTION_METADATA_FILENAME, 'utf-8')
|
const data = await this.__readFile(ENCRYPTION_METADATA_FILENAME)
|
||||||
JSON.parse(data)
|
JSON.parse(data)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// can be enoent, bad algorithm, or broeken json ( bad key or algorithm)
|
// can be enoent, bad algorithm, or broeken json ( bad key or algorithm)
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
<!--packages-start-->
|
<!--packages-start-->
|
||||||
|
|
||||||
|
- @xen-orchestra/fs patch
|
||||||
- xo-cli minor
|
- xo-cli minor
|
||||||
- xo-server minor
|
- xo-server minor
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user