mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
Update some dependencies so they're compatible with Node 22 (#25317)
* `"@google-cloud/profiler": "^6.0.3"` * `bin/npm update pprof` * `bin/npm update nan` * `bin/npm update @google-cloud/profiler` * Ignore false positive of `@typescript-eslint/return-await` > Returning an awaited value that is not a promise is not allowed Though the function was promisified GitOrigin-RevId: 24dbe3e8df2b55c0b9583ac79a61e0956ac3fac0
This commit is contained in:
@@ -305,8 +305,10 @@ module.exports = class FSPersistor extends AbstractPersistor {
|
||||
|
||||
async _listDirectory(path) {
|
||||
if (this.useSubdirectories) {
|
||||
// eslint-disable-next-line @typescript-eslint/return-await
|
||||
return await glob(Path.join(path, '**'))
|
||||
} else {
|
||||
// eslint-disable-next-line @typescript-eslint/return-await
|
||||
return await glob(`${path}_*`)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user