From a383dc316c69a0ad76bdc3da3f9ec713a299b8f3 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Tue, 27 Jul 2021 16:53:06 +0100 Subject: [PATCH] [misc] run format:fix --- libraries/object-persistor/src/FSPersistor.js | 6 +++--- .../object-persistor/test/unit/MigrationPersistorTests.js | 8 ++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/libraries/object-persistor/src/FSPersistor.js b/libraries/object-persistor/src/FSPersistor.js index 0ff9390d80..3c4ac22e98 100644 --- a/libraries/object-persistor/src/FSPersistor.js +++ b/libraries/object-persistor/src/FSPersistor.js @@ -163,9 +163,9 @@ module.exports = class FSPersistor extends AbstractPersistor { try { await Promise.all( - (await fsGlob(`${location}/${filteredName}_*`)).map((file) => - fsUnlink(file) - ) + ( + await fsGlob(`${location}/${filteredName}_*`) + ).map((file) => fsUnlink(file)) ) } catch (err) { throw PersistorHelper.wrapError( diff --git a/libraries/object-persistor/test/unit/MigrationPersistorTests.js b/libraries/object-persistor/test/unit/MigrationPersistorTests.js index 04293cabc1..736af1f8dd 100644 --- a/libraries/object-persistor/test/unit/MigrationPersistorTests.js +++ b/libraries/object-persistor/test/unit/MigrationPersistorTests.js @@ -195,9 +195,7 @@ describe('MigrationPersistorTests', function () { }) it('should send a stream to the primary', function () { - expect( - primaryPersistor.sendStream - ).to.have.been.calledWithExactly( + expect(primaryPersistor.sendStream).to.have.been.calledWithExactly( bucket, key, sinon.match.instanceOf(Stream.PassThrough), @@ -476,9 +474,7 @@ describe('MigrationPersistorTests', function () { }) it('should send the file to the primary', function () { - expect( - primaryPersistor.sendStream - ).to.have.been.calledWithExactly( + expect(primaryPersistor.sendStream).to.have.been.calledWithExactly( bucket, destKey, sinon.match.instanceOf(Stream.PassThrough),