Skip to content

Commit b5e0bfb

Browse files
committed
lint
1 parent 4f54141 commit b5e0bfb

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

packages/gcs-store/src/locker/GCSLock.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ export default class GCSLock {
4444
if (!isHealthy) {
4545
//Lock is not healthy, restart the process
4646
return await this.take(cancelHandler)
47-
} else {
48-
//Lock is still healthy, request release
49-
await this.file.requestRelease()
50-
51-
return false
5247
}
48+
//Lock is still healthy, request release
49+
await this.file.requestRelease()
50+
51+
return false
5352
}
5453
}
5554

@@ -112,7 +111,7 @@ export default class GCSLock {
112111
* Compare lock expiration timestamp with the current time.
113112
*/
114113
protected hasExpired(meta: GCSLockFileMetadata) {
115-
const expDate = Date.parse(meta.exp + '')
114+
const expDate = Date.parse(meta.exp.toString())
116115
return !expDate || expDate < Date.now()
117116
}
118117
}

packages/server/src/handlers/BaseHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import EventEmitter from 'node:events'
22
import stream from 'node:stream/promises'
3-
import {PassThrough, Readable} from 'node:stream'
3+
import {PassThrough, type Readable} from 'node:stream'
44
import type http from 'node:http'
55

66
import type {ServerOptions} from '../types'

0 commit comments

Comments
 (0)