Skip to content

Commit 11c987a

Browse files
committed
Remove unused ts-expect-error directive
1 parent 41d9791 commit 11c987a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/spectral/src/serverTypes/context.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,7 @@ export function createDebugContext(context: ServerActionContext): DebugContext {
149149
},
150150
memoryUsage: (actionContext: ActionContext, label: string, showDetail?: boolean) => {
151151
if (globalDebug) {
152-
const usage = showDetail
153-
? memoryUsageInMB()
154-
: // @ts-expect-error: memoryUsage.rss() is documented but not typed
155-
(memoryUsage.rss() as number) / MEMORY_USAGE_CONVERSION;
152+
const usage = showDetail ? memoryUsageInMB() : memoryUsage.rss() / MEMORY_USAGE_CONVERSION;
156153

157154
actionContext.debug.results.memoryUsage.push({
158155
mark: label,

0 commit comments

Comments
 (0)