Skip to content

Commit

Permalink
fix: null in isVersionMetadata (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
hansottowirtz authored Jun 28, 2024
1 parent 153b217 commit c721cb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/instrumentation/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const isDurableObject = (item?: unknown): item is DurableObjectNamespace => {
export const isVersionMetadata = (item?: unknown): item is WorkerVersionMetadata => {
return (
!isJSRPC(item) &&
typeof (item as WorkerVersionMetadata).id === 'string' &&
typeof (item as WorkerVersionMetadata).tag === 'string'
typeof (item as WorkerVersionMetadata)?.id === 'string' &&
typeof (item as WorkerVersionMetadata)?.tag === 'string'
)
}

Expand Down

0 comments on commit c721cb7

Please sign in to comment.