style: format extract.ts
This commit is contained in:
parent
38c3034cb7
commit
b32d1ad03f
@ -14,7 +14,9 @@ function unwrapMessage(message: proto.IMessage | undefined): proto.IMessage | un
|
|||||||
return normalized as proto.IMessage | undefined;
|
return normalized as proto.IMessage | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function extractContextInfo(message: proto.IMessage | undefined): proto.IContextInfo | undefined {
|
export function extractContextInfo(
|
||||||
|
message: proto.IMessage | undefined,
|
||||||
|
): proto.IContextInfo | undefined {
|
||||||
if (!message) return undefined;
|
if (!message) return undefined;
|
||||||
const contentType = getContentType(message);
|
const contentType = getContentType(message);
|
||||||
const candidate = contentType ? (message as Record<string, unknown>)[contentType] : undefined;
|
const candidate = contentType ? (message as Record<string, unknown>)[contentType] : undefined;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user