mirror of
https://github.com/quepasaevents/qpa-client.git
synced 2023-12-14 05:33:02 +01:00
Clean unrequired type assertion
This commit is contained in:
parent
2e44e1af3d
commit
4d698cb75a
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ export default class Repository {
|
|||
|
||||
async getEvent(id: string, datastore ?: Datastore | DatastoreTransaction): Promise<CalendarEvent> {
|
||||
const ds = (datastore || this.datastore)
|
||||
const result = await ds.get(this.datastore.key(['Event', id]) as DatastoreKey)
|
||||
const result = await ds.get(this.datastore.key(['Event', id]))
|
||||
|
||||
if (!result) {
|
||||
return null
|
||||
|
|
Loading…
Reference in a new issue