Skip to content

Commit

Permalink
refactor(cli): remove unnecessary type assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
juice49 authored and bjoerge committed Dec 11, 2023
1 parent fe2ed0a commit 7053829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@sanity/cli/src/util/createExpiringConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function createExpiringConfig<Type>({

if (!hasExpired) {
onCacheHit()
return value as Type
return value
}

onRevalidate()
Expand All @@ -64,7 +64,7 @@ export function createExpiringConfig<Type>({
updatedAt: Date.now(),
})

return nextValue as Type
return nextValue
},
delete() {
store.delete(key)
Expand Down

0 comments on commit 7053829

Please sign in to comment.